Results 1 to 6 of 6

Thread: QtDesigner Challenging Layout

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    qtoptus Guest

    Default QtDesigner Challenging Layout

    I could be a total novice in Qt realm. But could someone PLEASE show me how to arrange these controls in a dialog as shown in the attached picture, such that when I resize the dialog, only the YELLOW widget is resized, while the BUTTONS stay in their position and preserve size??? So the yellow widget expands or shrinks from the bottom and right side.

    Thanks.

    sample1..JPG

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

    Default Re: QtDesigner Challenging Layout

    Set the horizontal size policy of the yellow rectangle to Expanding or MinimumExpanding,
    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. #3
    qtoptus Guest

    Default Re: QtDesigner Challenging Layout

    Wow that worked!

  4. #4
    Join Date
    Jun 2010
    Posts
    137
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtDesigner Challenging Layout

    Hi,

    I am a newbie to QT and am using Qt Creator 1.3.1. I have the same problem that a Qwebview widget doesn't expand along with the mainwidnow. I tried with "expand" Sizepolicy option but no use. Any help would be greatly appreciated.

    Thank you,
    Baluk

  5. #5
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QtDesigner Challenging Layout

    Do you have the WebView in a layout? Give more detailes (or code a demo that replicates your issue)

  6. #6
    Join Date
    Jun 2010
    Posts
    137
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtDesigner Challenging Layout

    Hi

    i got the problem solved after reading about layouts. I made the mistake of not applying layout in a correct way. Before i used to place the layout widget onto mainwindow and then place the other widgets into this layout, Which is very wrong. Thank you for the reply.

Similar Threads

  1. Replies: 0
    Last Post: 25th May 2009, 10:00
  2. Challenging QTcpSocket reliability problem
    By Raccoon29 in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2009, 10:38
  3. Replies: 1
    Last Post: 19th June 2008, 17:40
  4. Replies: 7
    Last Post: 15th June 2007, 16:13
  5. QtDesigner Layout Help
    By mentat in forum Qt Tools
    Replies: 5
    Last Post: 13th July 2006, 14:55

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.