Results 1 to 5 of 5

Thread: unable toremove window Title Bar from the Widget

  1. #1
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default unable toremove window Title Bar from the Widget

    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

  2. #2
    Join Date
    Jul 2006
    Posts
    79
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: unable toremove window Title Bar from the Widget

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

  3. #3
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: unable toremove window Title Bar from the Widget

    Quote Originally Posted by aMan View Post
    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 , everything is working now

    Thanks

  4. #4
    Join Date
    Sep 2008
    Posts
    4
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: unable toremove window Title Bar from the Widget

    could you tell how you solve your problem?

  5. #5
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: unable toremove window Title Bar from the Widget

    did you try to use to set these flags?
    Qt Code:
    1. ...
    2. setWindowFlags(windowFlags() | Qt::Window | Qt::CustomizeWindowHint);
    3. ...
    To copy to clipboard, switch view to plain text mode 

    see, QTDIR/examples/widgets/windowflags.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Remove window title
    By marcel in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 05:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.