Windows without title bar but with border
-
wrote on 26 Jul 2011, 13:50 last edited by
Hi everyone,
I'm trying to create a dialog in Qt without titlebar but with a border. I've tried Qt::FramelessWindowHint but this removes also the border.
I've tried also Qt::CustomizeWindowHint but in this case I obtain a partial and ugly blue border.
I'm using Qt embedded with the qws window system.Thanks for the help.
-
wrote on 26 Jul 2011, 19:04 last edited by
May be this "example":http://doc.qt.nokia.com/4.7/widgets-windowflags.html is good for you. Many types of windows are demonstrated.
-
wrote on 26 Jul 2011, 19:16 last edited by
It is also there in QtCreator welcome->choose an example ->widgets -> window flags. Worth looking, i guess. Good Luck.
-
wrote on 28 Jul 2011, 12:29 last edited by
Thank you for your reply. Unfortunately none of these examples it's what I need. So I ended up by doing a custom dialog without frame decorations. In this dialog I've placed a dark background color and then I've used an overlying element a little smaller so the background looks like a border.
-
wrote on 28 Jul 2011, 12:37 last edited by
Thats cool. :) So, it is solved :)
-
wrote on 28 Jul 2011, 12:40 last edited by
More or less...it's a dirty workaround.
-
wrote on 21 Nov 2011, 09:52 last edited by
Split off a "new issue":http://developer.qt.nokia.com/forums/viewthread/11793/ on this, but on the linux desktop.
-
wrote on 22 Aug 2014, 08:39 last edited by
I had the sam problem and accidentally found acceptable solution?
this will produce resizeable window without title:
@w->setWindowFlags(Qt::Tool|Qt::CustomizeWindowHint);@