[PyKDE] Workspace -> don't see windows

Gordon Tyler gordon at doxxx.net
Thu Jun 20 18:27:00 BST 2002

From: "Karl" <myonlyb at gmx.net>

> But it works fine with QMainWindows as long as I do create them directly
> after initializing my main window.

I think that's a "fluke" ;)

> The windows I did not see were QDialogs (some of them). I just tried using
> a QDialog, the same thing: when I create them in the constructor or in a
> method called by the constructor it works, when creating the window from
> outside using the workspace as parent, I cannot see them ...

Try using a class that you've directly subclassed from QWidget:

class ChildWindow(QWidget):
    def __init__(self, parent):
        QWidget.__init__(self, parent)

    ... etc ...


More information about the PyQt mailing list