Results 1 to 9 of 9

Thread: Widget layout in GridLayout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    12
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    7

    Question Widget layout in GridLayout

    Hello
    I'm just making my first steps in qt so don't laugh
    I want to control widget's alignment which is in gridlayout's cell. the problem is that when I place a widget in the layout, it is positioned in the center, vertically and horizontally. How can I change it's position, for example to top, bottom, left, right etc.? See the image in the attachement. The button "Centered" is in the center of the cell, I want it to be on the top. How can I achieve that?
    Thanks
    Attached Images Attached Images

Similar Threads

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