PDA

View Full Version : Remove window title



marcel
9th April 2007, 12:28
I have created a widget with:



setWindowFlags( Qt::Tool | Qt::WindowTitleHint | Qt::FramelessWindowHint );


The problem is that the widget inherits the window title of the main window, which is its parent.

I have tried setWindowTitle(""), but it doesn't work.

Any idea how to remove the title?

Regards

marcel
9th April 2007, 13:05
It's OK. I'll just draw the title bar myself, without drawing the window title too.
I needed those flags because I don't want any title bar buttons being visible.

aamer4yu
10th April 2007, 05:06
Hey marcel...
try this....
setWindowTitle(" ");
The hack is not setting the string null... but as blank(s) !!

Hope this helps you :)