Results 1 to 9 of 9

Thread: Widget layout in GridLayout

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Widget layout in GridLayout

    Quote Originally Posted by Dato0011 View Post
    Yes you are right. from code it's more optimal.
    but does it mean that I have to create the gui from the code?
    or does the designer generates "QGridLayout::addWidget" somewhere when I add a widget on the form? If so I'll be able to update that code.
    no, you can create GUI using designer and then you can get access to a layotu in code and set properly alignment.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  2. The following user says thank you to spirit for this useful post:

    Dato0011 (7th December 2009)

  3. #2
    Join Date
    Dec 2009
    Posts
    12
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Widget layout in GridLayout

    Thank you very musch guys. I did it

Similar Threads

  1. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  2. QScrollArea: clearing the layout of the inner widget
    By mattc in forum Qt Programming
    Replies: 1
    Last Post: 3rd August 2009, 08:09
  3. hiding a widget without rearrange layout
    By mastupristi in forum Newbie
    Replies: 1
    Last Post: 6th July 2009, 17:20
  4. Resize widget force layout resizing
    By ^NyAw^ in forum Qt Programming
    Replies: 17
    Last Post: 11th February 2009, 11:27
  5. resizing events of a custom widget in a layout
    By Rooster in forum Qt Programming
    Replies: 7
    Last Post: 16th February 2008, 10:52

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.