[PyQt] Dialog behaves as a window
Doug Bell
dougb at bellz.org
Tue Jan 20 02:12:09 GMT 2009
Frédéric wrote:
> With PyGTK, from glade, it is possible to choose the behaviour of a dialog,
> so it is managed as the main window.
>
> Depending of the window manager, it has more or less effects. For example,
> under KDE, it is not created over the main window, but side by side (if
> there is enough space). The more interesting change is under Nokia/maemo,
> where the dialog can takes all the screen space (and can even be switch
> fullscreen); it is also possible to bring back the main window in front of
> it, which is not possible if the dialog has its default behaviour.
>
> I didn't find a way to do this with Qt/PyQT. Is it possible? How?
Yes. Look for QWidget.setWindowFlags(Qt.Window) in the docs.
Doug.
More information about the PyQt
mailing list