Results 1 to 4 of 4

Thread: Remove Window title bar

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Remove Window title bar

    Hi all,
    I'd like to remove the window title bar on the top of a window,
    I tried Qt::WindowTitleHint but that just removes the butttons on the bar, I could also use a Qt::FramelessWindowHint but that dosen't allow me to manually resize the window.
    Any help is appreciated
    Thanks in advance
    bye

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Remove Window title bar

    If you want a frameless window use the Qt::FramelessWindowHint Option. Now to handle the resizing, a frame is required or you will have to write the codes for resizing. You could have some widgets that acts as a grip and dagging that should essentially resize your Frameless widget
    We can't solve problems by using the same kind of thinking we used when we created them

  3. #3
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Remove Window title bar

    thanks for answering,
    well, basically the normal window woul be good to me, I just want to remove the (usually blue on XP) window title, having read the docs it seems to me that's impossible to have unless implementi a custom widget that behaves like that.
    bye

  4. #4
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Remove Window title bar

    Qt does not handle the Frames. the underlying window manager does it. So for a title bar. I think you have to paint it yourself
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. Replies: 6
    Last Post: 13th February 2014, 12:46
  2. window title bar
    By moowy in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2006, 16:56
  3. Replies: 3
    Last Post: 23rd July 2006, 18:02
  4. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21
  5. QSettings again ... how to remove array elements
    By Mike in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 08:58

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.