July 26, 2011

mrAlmond mrAlmond
Lab Rat
7 posts

Windows without title bar but with border

 

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.

6 replies

July 26, 2011

Rahul Das Rahul Das
Robot Herder
362 posts

May be this example [doc.qt.nokia.com] is good for you. Many types of windows are demonstrated.

 Signature 

——————————-

    Rahul Das

——————————-

July 26, 2011

Rahul Das Rahul Das
Robot Herder
362 posts

It is also there in QtCreator welcome->choose an example ->widgets -> window flags. Worth looking, i guess. Good Luck.

 Signature 

——————————-

    Rahul Das

——————————-

July 28, 2011

mrAlmond mrAlmond
Lab Rat
7 posts

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.

July 28, 2011

Rahul Das Rahul Das
Robot Herder
362 posts

Thats cool. :) So, it is solved :)

 Signature 

——————————-

    Rahul Das

——————————-

July 28, 2011

mrAlmond mrAlmond
Lab Rat
7 posts

More or less…it’s a dirty workaround.

November 21, 2011

Andre Andre
Area 51 Engineer
6031 posts

Split off a new issue [developer.qt.nokia.com] on this, but on the linux desktop.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

 
  ‹‹ [SOLVED] Single instance applications on N950      QCoreApplication / usb keyboard ››

You must log in to post a reply. Not a member yet? Register here!