Results 1 to 18 of 18

Thread: Disabling the Maximize button in QMainWindow ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    ucomesdag Guest

    Wink Re: Disabling the Maximize button in QMainWindow ?

    This should do it...
    Qt Code:
    1. #include <QtGui/QApplication>
    2. #include <QMainWindow>
    3.  
    4. int main(int argc, char *argv[]) {
    5.  
    6. QApplication app( argc, argv );
    7.  
    8. win.setWindowFlags( Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint | Qt::WindowSystemMenuHint);
    9.  
    10. win.show();
    11.  
    12. return app.exec();
    13. };
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to ucomesdag for this useful post:

    Djony (10th January 2007)

Similar Threads

  1. Replies: 2
    Last Post: 1st August 2006, 10:23
  2. custom maximize button---
    By Naveen in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 13:11
  3. Replies: 18
    Last Post: 22nd February 2006, 20:51
  4. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

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.