When I call setWindowFlags(QtCore.Qt.Window), the dialog is presented with only the maximize button enabled; the close and minimize buttons are disabled.

From the docs, it looks like the flags are combinable. However, none of the combinations I've tried enable the close and minimize buttons. eg:

form.setWindowFlags(QtCore.Qt.Window | QtCore.Qt.WindowMinimizeButtonHint)

For my current purposes, I'm most interested in the close button, though I haven't found the hint that provides access to it.

Thanks again!
Scott




On Sep 12, 2008, at 3:05 AM, Doug Bell wrote:

Scott Frankel wrote:
Is there a flag, property, or hint that can be invoked on a QDialog to
have it display its window's dismiss/minimize/maximize buttons?

setWindowFlags(QtCore.Qt.Window)

(inherited from QWidget)

Doug.
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt





_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to