Results 1 to 2 of 2

Thread: How to remove QMainWindow's title and border

  1. #1
    Join Date
    May 2010
    Posts
    18
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to remove QMainWindow's title and border

    Hi,

    I have to customize my application's look and feel and i am facing two problems-

    1- I want to remove QMainWindow's title bar and want to use my custom title bar.

    2-I want to remove QMainWindow's border also (like QTDemo application).

    Any help/tutorial will be good for me.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to remove QMainWindow's title and border

    Quote Originally Posted by meraj ansari View Post
    1- I want to remove QMainWindow's title bar and want to use my custom title bar.
    Use Qt::FramelessWindowHint.

    2-I want to remove QMainWindow's border also (like QTDemo application).
    QtDemo doesn't remove any borders so you have to be more specific about what you want.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    meraj ansari (14th May 2010)

Similar Threads

  1. Replies: 2
    Last Post: 21st March 2012, 14:30
  2. Replies: 4
    Last Post: 13th July 2009, 18:18
  3. Replies: 4
    Last Post: 19th February 2009, 16:56
  4. Replies: 0
    Last Post: 13th February 2009, 08:26
  5. Remove Widget Border?
    By winston2020 in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2008, 05:26

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.