python - How do I create a custom window title bar using PyQt4? -


i finding way customize window title bar pyqt4 application. far understand, not possible use style-sheet purpose. instead have hide title bar with

.setwindowflags(qtcore.qt.framelesswindowhint)  

and implement own title bar. puzzled have seen did use qhboxlayout qlabel(for window title name) , qbutton(for exit,max,min actions) make 1 this

enter image description here

and used style-sheets decorate each individual widgets. that's fine simple title bar. if want more complicated title bar this?

enter image description here

i don't think altering style-sheets properties give me kind of looks.

so,my question is, possible create such complicated title bar in pyqt4? if so, beginner, should looking at? dig , learn concept myself, needs directions.

perhaps late in replying, anyway, i'll let know few thing have pickup myself. one, quite easy create such "complicated" title bar, , ui using pyqt4. recommend read post

stacking qpushbuttons on other side of qmenubar

the ui max/min/close buttons may achieved using style sheets - you'll have tinker fair amount. if have trouble adapting code qt4 pyqt4 can mail me, i'll best you.


Comments

Popular posts from this blog

android - Automated my builds -

how to proxy from https to http with lighttpd -

python - Flask migration error -