Results 1 to 2 of 2

Thread: Resize Policy not recognized

  1. #1
    Join Date
    Sep 2009
    Posts
    41
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Resize Policy not recognized

    I have made a GUI to which I am adding widgets at run time. I click a button and a row gets added to a QFrame. Everything works fine until I add enough rows to reach the bottom of the GUI window. When this happens, I would like the window to automatically resize. I have tried setting the Vertical Size Policy to "Expanding" for everything - the GUI, the enclosing QFrame, and the row (another QFrame). I have also tried calling updateGeometry(), update(), and repaint(). Nothing seems to work. How can I make the GUI expand dynamically to fit all the contents? Thanks for your help!

  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: Resize Policy not recognized

    Set the size constraint property of the layout to Minimum or to Fixed.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    Ishmael (20th May 2010)

Similar Threads

  1. Swipe gesture not recognized
    By Luc4 in forum Qt Programming
    Replies: 2
    Last Post: 16th December 2014, 15:13
  2. moc.exe is not recognized as an internal or external command
    By Deshi in forum Installation and Deployment
    Replies: 4
    Last Post: 23rd January 2010, 00:40
  3. mingw32-make not recognized
    By freekill in forum Installation and Deployment
    Replies: 4
    Last Post: 8th January 2010, 16:26
  4. File format not recognized -- bass.dll
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2009, 12:26
  5. slots and signals don't seem to be recognized
    By Jessehk in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2007, 19:50

Tags for this Thread

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.