Results 1 to 2 of 2

Thread: QFrame doesn't resize as it should

  1. #1
    Join Date
    Apr 2013
    Posts
    4
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11

    Default QFrame doesn't resize as it should

    It seems that the QFrame is only resized according to the inner content, is it possible to make it resized to fit its container? I tried to set the size policy to expanding and it doesn't work.
    Thanks.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QFrame doesn't resize as it should

    is it possible to make it resized to fit its container?
    This is default behaviour, and works as long as the container widget has a layout set on it, and and the QFrame is manged by the layout
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Replies: 1
    Last Post: 28th June 2012, 14:29
  2. Replies: 2
    Last Post: 22nd January 2008, 16:10
  3. Setting QFrame palette in Designer doesn't "stick"
    By Doug Broadwell in forum Qt Tools
    Replies: 1
    Last Post: 9th September 2007, 21:44
  4. Simple frame control doesn't resize when I hide()
    By MrGarbage in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2007, 22:32
  5. On Qt4.2.2, QMessageBox doesn't resize!
    By manhds in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2006, 08:50

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.