Results 1 to 20 of 30

Thread: Disable Close button (X) of a QDialog

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #19
    Join Date
    Jan 2006
    Location
    Russia
    Posts
    16
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 5 Times in 4 Posts

    Default Re: Disable Close button (X) of a QDialog

    Starting with Qt 4.5 there is a new window hint for controlling close button Qt::WindowCloseButtonHint:

    Qt Code:
    1. w.setWindowFlags(Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint| Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonHint);
    To copy to clipboard, switch view to plain text mode 

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

    BrainB0ne (28th April 2009), Cupidvogel (7th March 2016)

Similar Threads

  1. Diasble close button on a QDialog
    By Krish_ng in forum Qt Programming
    Replies: 12
    Last Post: 17th July 2007, 04:23
  2. Replies: 1
    Last Post: 7th July 2007, 09:03
  3. Disable Checkable Button Question
    By jbpvr in forum Qt Programming
    Replies: 9
    Last Post: 20th March 2007, 17:57
  4. Replies: 2
    Last Post: 5th February 2007, 17:42
  5. Replies: 3
    Last Post: 16th November 2006, 12:24

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.