Ludo Visser <l.c.visser@...> writes: > > That works like a charm, thanks! > Is there an explanation why it should be done in this way? > > Best, > Ludo > > On Jul 25, 2012, at 12:16 pm, Juande Manjon wrote: > > > Try to set the windows flag in the constructor > > > > class ModalDialog(QtGui.QDialog): > > def __init__(self, *args, **kwargs): > > > > kwargs['f'] = QtCore.Qt.FramelessWindowHint > > QtGui.QDialog.__init__(self, *args, **kwargs) > > > > #self.setWindowFlags(QtCore.Qt.FramelessWindowHint) > > > > > > Regards > > Juande > >
setWindowFlags passes flags to the underlying C/C++ API on construction, e.g. see the Windows C API for more details. Once the window has been created it's then too late to change those options: http://msdn.microsoft.com/en-us/library/windows/desktop/ms632680%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543%28v=vs.85%29.aspx Regards _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
