Results 1 to 5 of 5

Thread: Maximize window and resize contents - howto?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo
    Thanks
    1
    Thanked 26 Times in 26 Posts

    Default Re: Maximize window and resize contents - howto?

    That's right. However to maximize your window you must use following

    Qt Code:
    1. void QWidget::showMaximized () [slot]
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2011
    Location
    Russia, Lipetsk
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 6 Times in 6 Posts

    Default Re: Maximize window and resize contents - howto?

    Quote Originally Posted by Rachol View Post
    That's right. However to maximize your window you must use following

    Qt Code:
    1. void QWidget::showMaximized () [slot]
    To copy to clipboard, switch view to plain text mode 
    Yes, I was not right. Use Myself

    Qt Code:
    1. MainWindow w;
    2. w.show();
    3. w.showMaximized();
    4. return a.exec();
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. maximize grid with maximize window
    By bibhukalyana in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2011, 09:16
  2. Replies: 1
    Last Post: 2nd May 2010, 00:03
  3. 'resize/maximize' button not visible
    By sindhumol_s in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2009, 03:15
  4. Maximize Window button of Manin Window
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2007, 09:20
  5. Resize QTreeWidget columns to contents
    By FaS in forum Qt Programming
    Replies: 9
    Last Post: 2nd July 2006, 21:48

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.