PDA

View Full Version : widget without title bar???



db
21st August 2007, 17:28
I have a need to create a widget that does not have the window title bar (with the max, min, close buttons) at the top. It is to be used for displaying dials and buttons. How do I remove it?

jpn
21st August 2007, 18:13
See QWidget::setWindowFlags() and Qt::FramelessWindowHint (http://doc.trolltech.com/latest/qt.html#WindowType-enum).

db
21st August 2007, 21:58
Thanks I'll give it a try... There is just so much to Qt, it gets hard at times to figure out the features.

bpetty
30th August 2007, 21:16
On a similar topic, I have set my flags to remove WindowMaximizeButtonHint. It disables it, but does not remove it from the title bar. If "db" wanted to be selective as to what title bar buttons appear, how might "he" go about that? :)