[PyKDE] Isuing a aprent qApp

Phil Thompson phil at riverbankcomputing.co.uk
Mon Dec 6 15:27:36 GMT 2004


>
> Apparently, out look ate my last email so here it is again.
>
>
>
> I am using python embedded in an MFC app. The Python interp brings up
> QDialogs (from UI files, and coded in PyQt) This now works, and
> beautifully. There are 2 small issues that I need to address
>
> 1) The MFC app and the QDialog are sperate task bar entries.
>
> 2) The QDialog (even when set to modal in designer) is not modal, that
> is, the parent MFC app may be z-ordered in front if it.
>
>
>
> It think these issues will be fixed once I can make a QWinWidget that is
> the theApp.m_pmainFrame (or whatever it is called in MFC) but then the
> issue is how do I get the QDialog's parent set to that? The issue I see
> here is that the parent is outside the interpreter, and the needs to be
> sent inside. I also see qApp.mainWidget, but the issue remains the same.

I can only suggest using QWidget::reparent() (?) from C++ before you show
the PyQt dialog.

Phil




More information about the PyQt mailing list