PDA

View Full Version : How to create an application without title bar and border



sasan-j
13th July 2009, 14:03
I want to write an application without title bar and border, in one word something like picture bellow
i read many thing about window flags and anything else but i couldn't get them working!
I'm using PyQt4.5 and now working on windows.
please help me with a small code example

thank you
sorry for my bad English

gsmiko
13th July 2009, 14:35
Hi!

Use the Qt::FramelessWindowHint flag. The result will be a window without the frame and title bar. To create something similar to the window on your screenshot, a title bar/frame should be emulated, you have to draw all the controls, implement moving, resizing, react to window events... (btw. to intercept and to properly react to all the window events on Windows requires lots of time and experimentation, take a look at this example (http://www.qt-apps.org/content/show.php/QSkinObject?content=67309))

spirit
13th July 2009, 14:57
play with QTDIR/examples/widgets/windowflags.

sasan-j
13th July 2009, 15:01
Hi!

Use the Qt::FramelessWindowHint flag. The result will be a window without the frame and title bar. To create something similar to the window on your screenshot, a title bar/frame should be emulated, you have to draw all the controls, implement moving, resizing, react to window events... (btw. to intercept and to properly react to all the window events on Windows requires lots of time and experimentation)

thanks for answering

i think my main problem is how to use the flags, there is many examples in C++ but I'm using PyQt, so I need an example in python.

Edit: I did not see spirit's post before reply, i think i will find my answer in there

manishkyl
13th July 2009, 19:18
also i guess you would need WA_TransluscentBackground for the rounded corners