Results 1 to 3 of 3

Thread: Remove window title

  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Remove window title

    I have created a widget with:

    Qt Code:
    1. setWindowFlags( Qt::Tool | Qt::WindowTitleHint | Qt::FramelessWindowHint );
    To copy to clipboard, switch view to plain text mode 

    The problem is that the widget inherits the window title of the main window, which is its parent.

    I have tried setWindowTitle(""), but it doesn't work.

    Any idea how to remove the title?

    Regards

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Remove window title

    It's OK. I'll just draw the title bar myself, without drawing the window title too.
    I needed those flags because I don't want any title bar buttons being visible.

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Remove window title

    Hey marcel...
    try this....
    Qt Code:
    1. setWindowTitle(" ");
    To copy to clipboard, switch view to plain text mode 
    The hack is not setting the string null... but as blank(s) !!

    Hope this helps you

  4. The following user says thank you to aamer4yu for this useful post:

    marcel (10th April 2007)

Similar Threads

  1. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  2. Remove Window title bar
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 16th January 2007, 12:56
  3. window title bar
    By moowy in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2006, 16:56
  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.