Results 1 to 4 of 4

Thread: Designer Layout Tips?

  1. #1
    Join Date
    Aug 2008
    Location
    Texas, USA
    Posts
    44
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Designer Layout Tips?

    I'm posting this thread to ask is there any layout tips, possibly website, forum posts, etc.

    The reason why I ask is because I come from the Visual Studio .rc file way where I would place the absolute positions and control dynamically through code. Now I know I can do that in Qt as well, however I want to try out using the recommended layout method with spacers, horizontal/vertical/grid/etc layouts.

    So far in my playing with Qt I've been able to use the layouts but I have a hard time conceptualizing how to do this will LOTs of controls on a page. For example say I have my page all built up nice and I want to add another control...breaking the layouts to place the control and then building back up the layouts is a pain. I know you can drag and drop into the current layout but copying and pasting an already setup control didn't quite seem to work.

    I guess I'm just asking how are you guys building your user interfaces? Any suggestions?

    Thanks!

  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: Designer Layout Tips?

    What is wrong with dragging the new widget into an existing layout? I didn't quite get what you meant...
    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
    Join Date
    Aug 2008
    Location
    Texas, USA
    Posts
    44
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Designer Layout Tips?

    I guess I was having trouble re-arranging them. Especially when moving the controls down to the bottom of a layout. It turns out its easier to move the controls up from the bottom then to get that little blue line just right to insert.

    Anyways I guess I just posted too soon....i'm getting the hang of this now. Just takes some getting used to.

  4. #4
    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: Designer Layout Tips?

    If you have a very complex layout it is sometimes good to refactor the form and use the widget promotion feature to compose a single form from several separate sub-forms.
    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.


Similar Threads

  1. how to promote layout in Designer?
    By homerli in forum Qt Tools
    Replies: 1
    Last Post: 11th May 2009, 16:40
  2. How can I set a layout to a dock inside Qt Designer?
    By ricardo in forum Qt Programming
    Replies: 4
    Last Post: 1st May 2009, 10:17
  3. Qt like Layout Manager available for .NET platform
    By vkhaitan in forum Qt Programming
    Replies: 0
    Last Post: 5th November 2008, 13:36
  4. Can I insert expanding layout in Qt Designer?
    By zolookas in forum Newbie
    Replies: 2
    Last Post: 6th October 2008, 18:17
  5. Qt layout memory issue
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 25th August 2007, 17:11

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.