Results 1 to 5 of 5

Thread: Wasn't There an AutoLayout (allows resize?) in QDesigner?

  1. #1
    Join Date
    Jul 2007
    Posts
    30
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Wasn't There an AutoLayout (allows resize?) in QDesigner?

    I was pretty sure there was some sort of autolayout form, in which you shift click a bunch of objects and then apply an auto-layout in QDesigner which automatically makes them resizable.

    Grid doesn't seem to do the trick. Did they change this in 4.4.0?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wasn't There an AutoLayout (allows resize?) in QDesigner?

    Maybe you simply forgot to set a top-level layout?

  3. #3
    Join Date
    Jul 2007
    Posts
    30
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Wasn't There an AutoLayout (allows resize?) in QDesigner?

    ??
    Um...
    I have a blank mainwindow.
    I set a tab widget.
    In the tab I have a grid layout ... in it a couple objects.

    I could have sworn there was a Autolayout button.

    As I grow the mainwindow, the tab grows, but the gridlayout isn't growing.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wasn't There an AutoLayout (allows resize?) in QDesigner?

    Quote Originally Posted by Arsenic View Post
    As I grow the mainwindow, the tab grows, but the gridlayout isn't growing.
    You didn't set a top-level layout for the tab page. Don't select any widgets, just click on the tab page background and click one of the "Lay out in..." buttons --- you'll get your "autolayout".

  5. The following user says thank you to jacek for this useful post:

    Arsenic (1st August 2008)

  6. #5
    Join Date
    Jul 2007
    Posts
    30
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Wasn't There an AutoLayout (allows resize?) in QDesigner?

    They should really explain this better in the software, because I dont' think anyone starting out would be able to figure that out. Apparently you're not suppose to select the widgets.

Similar Threads

  1. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32

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.