Results 1 to 2 of 2

Thread: QStackedWidget page with different size

  1. #1
    Join Date
    Jul 2008
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy QStackedWidget page with different size

    Dear I really need your help!

    I have a QDialog completely filled with a 3 pages QStackedWidget.
    In the first page I have only a big drawing and a combobox with which the user can select one of the other two remaining pages.
    The second pages is really big (800 X 600), instead the third pages (as the first) could be very small.
    How can I set the different dimension of the pages with QDialog adapting to that changes?

    Thank in advance

    Lisa

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QStackedWidget page with different size

    You can place the second page into a scrollarea, so that you have scrollbars to pan the page if it doesn't fit the dialog. If you want the dialog to adapt to the page size, you need to apply a size constraint on the dialog layout. See QLayout::sizeConstraint for details.

Similar Threads

  1. How to find best size for QTableWidget?
    By plamkata in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2008, 19:07
  2. QT-wince and QHttp::readAll() trouble....
    By AcerExtensa in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 12th June 2008, 09:40
  3. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  4. Replies: 1
    Last Post: 24th October 2006, 16:40
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

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.