[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Form/dialog without title bar and actions buttons
From:       "Hans-Peter Jansen" <hpj () urpla ! net>
Date:       2009-09-30 22:22:51
Message-ID: 200910010022.51369.hpj () urpla ! net
[Download RAW message or body]

Am Mittwoch 30 September 2009 schrieb zorze:
> Hi Pete,
> first of all thank you for your anwser.
>
> I'm doing a point of sale in PyQt, one of the goals it to
> work in touch screen devices, for my experience with other software
> it can't have minime, maximize, etc. buttons, the title bar is also
> useless.

Ahh, I see.

> You give the clue, I'm following.

Did that already: QWidget.setWindowFlags(...) and also search for 
Qt::WindowFlags in assistant. 

Basically, you flag your windows special and hope, that the windowmanager 
does, what you want.. Since all that is nearly unpossible to predict for 
all permutations of available window managers and possible flags, you need 
to experiment. 

If you can take the woes of window placing yourself, use 
Qt.FramelessWindowHint, otherwise you may want to try combinations of 
various hints with Qt.CustomizeWindowHint.

If you REALLY need more esoteric behavior, I did some hacking with ctypes 
calling into xlibs directly. Hmm, admitted, one cannot get much dirtier, 
even on purpose..

Hth,
Pete


> Thanks.
>
> Regards,
> Jorge
>
> On Monday 28 September 2009 21:42:19 Hans-Peter Jansen wrote:
> > Am Montag 28 September 2009 schrieb zorze:
> > > Hi,
> > > I'm a newbee in Qt/PyQt but I'm starting to use it.
> >
> > Welcome to the PyQt wonderlands ;-)
> >
> > > The first problem that I need to solve is how to
> > > remove the title bar from a Dialog/MainWindow?
> >
> > Could you be more specific about your goals? Are you really after the
> > effects of "killall $WINDOWMANAGER"?
> >
> > Without title bars, users usually cannot resize nor move their windows!
> >
> > Anyway, programmatically, you can play with
> > QWidget.setWindowFlags(...).
> >
> > Real fun starts with sticky windows, skipping taskbars and pagers,
> > title bars without close/min/max buttons and the like..
> >
> > Enjoy,
> > Pete
> > _______________________________________________
> > PyQt mailing list    PyQt@riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic