Results 1 to 3 of 3

Thread: How to make a QMainWindow fixed sized?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: How to make a QMainWindow fixed sized?

    Quote Originally Posted by Goldmmbr View Post
    Hmm i can't seem to manage to find an elegant way of doing this... anyone have any ideeas?
    Just call this function with your preferred size parameters.
    Qt Code:
    1. mainWindow->setFixedSize(200,200);
    To copy to clipboard, switch view to plain text mode 

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

    Goldmmbr (10th November 2009)

Similar Threads

  1. Replies: 2
    Last Post: 23rd March 2009, 18:26
  2. Replies: 1
    Last Post: 18th August 2008, 16:10
  3. Replies: 13
    Last Post: 12th June 2008, 14:23
  4. How to make headers fixed sized? (QTableWidget)
    By macias in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2007, 16:57
  5. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57

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.