Results 1 to 18 of 18

Thread: Disabling the Maximize button in QMainWindow ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    72
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: Disabling the Maximize button in QMainWindow ?

    Tried it. It doesn't work on WinXP.

  2. #2
    Join Date
    Dec 2006
    Posts
    211
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    27

    Default Re: Disabling the Maximize button in QMainWindow ?

    what is Happening when you r doing this.
    Is there is an error?
    Actually I am running it correctly and donot know why it is not working in XP.

    check one thing that U also set the geometry of main window as

    MainForm *MainFormObj=new MainForm(0);
    MainFormObj->show();

    MainFormObj->setMaximumSize (849,626);
    MainFormObj->setMinimumSize (849,626);

    MainFormObj->setGeometry(5,42,849,626); //add this line

    Try this.
    Last edited by vishal.chauhan; 10th January 2007 at 12:52. Reason: updated contents

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.