Results 1 to 9 of 9

Thread: How to hide Close Button "X" on Widget ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2010
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanked 3 Times in 1 Post

    Default Re: How to hide Close Button "X" on Widget ?

    I did it a few minutes ago for my application. In main.cpp, write:

    widget.setWindowFlags ( Qt::CustomizeWindowHint | Qt::WindowTitleHint);
    widget.show();
    Now you do not have close button, neither a menu close and ALT-F4 won't work.
    Hope this can be helpful.

    I'm using Qt4 under Linux

  2. The following 3 users say thank you to arnaizf for this useful post:

    francomartins (20th June 2012), maratk1n (14th April 2017), ShaChris23 (28th July 2010)

Similar Threads

  1. Close Button on Modal Widget?
    By vishal.chauhan in forum Qt Programming
    Replies: 5
    Last Post: 18th February 2008, 11:38
  2. Replies: 3
    Last Post: 17th October 2007, 12:52

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
  •  
Qt is a trademark of The Qt Company.