[PySide] Frameless dialog does not show
A Lynch
alynch4047 at gmail.com
Mon Jul 30 16:27:58 CEST 2012
Ludo Visser <l.c.visser at ...> 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
More information about the PySide
mailing list