Results 1 to 2 of 2

Thread: Maximize Window button of Manin Window

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Maximize Window button of Manin Window

    Hi,
    I have a QMainWindow. I want to disable the resize button ( Maximize Window button ) of the main window. How can i do this.

  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: Maximize Window button of Manin Window

    Try this in the constructor of your window:
    Qt Code:
    1. setWindowFlags(Qt::Window | Qt::WindowMinimizeButtonHint);
    To copy to clipboard, switch view to plain text mode 

    This will disable the maximize button. At least in 4.3 it does.

    Regards

Similar Threads

  1. custom maximize button---
    By Naveen in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 13:11

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.