PDA

View Full Version : unable toremove window Title Bar from the Widget



LiCodeX
24th July 2007, 11:13
Hi,
I've been working on a application, for which I need to remove the Title bar, which window manager usually decorates on the widget. I've tried the following code to remove it

setWindowFlags(Qt::FramelessWindowHint);

but it stills shows up with the title bar!, I've tried every other related flags with OR option to it, but with no luck. Interestingly, this same program works fine with Windows OS, giving no Title bar as expected, but on my Debian Linux its not working at all!

although I know that, some X11 window managers overrides the Qt flags,but I've no idea about Debian's window manager, and even though I've tried the flag Qt::X11BypassWindowManagerHint, it doesn't make any difference on it!

am I missing something basic out here?

any help will be appreciated

Thanks

aMan
30th July 2007, 07:47
1. Which window manager are you using?
2. Does the window flags example work? ( http://doc.trolltech.com/4.3/widgets-windowflags.html )

LiCodeX
2nd August 2007, 08:24
1. Which window manager are you using?
2. Does the window flags example work? ( http://doc.trolltech.com/4.3/widgets-windowflags.html )

Thanks aMan, I figured it out, actually it was a small mistake on my part :o, everything is working now

Thanks

Bing
23rd December 2008, 20:36
could you tell how you solve your problem?

spirit
23rd December 2008, 20:41
did you try to use to set these flags?


...
setWindowFlags(windowFlags() | Qt::Window | Qt::CustomizeWindowHint);
...


see, QTDIR/examples/widgets/windowflags.