Results 1 to 8 of 8

Thread: How do I layout in a Grid?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2006
    Posts
    33
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default How do I layout in a Grid?

    Hello,

    I saw another post that talked about laying out widgets in a form and setting the layout for resizing. But, that didn't seem to fix my problem.
    I have a Tab Widget that has two pages. Each of the pages contains a tab widget (with two pages) also.

    Below the top Tab Widget I have two buttons.
    When I set "Layout To Grid" for everything the Tab Widget scales correctly - it resizes as the form resizes etc. The problem is my buttons also resize so they both take up 50% of the form width. If I change the sizePolicy hSizeType to Fixed for both buttons, the buttons size fine, but the Tab Widget also shrinks down.

    Do I need to change the hSizeType to something other than Fixed? I also tried to change the maximum size to limit the size of the button to 75, but it creates the same end result on the Tab Widget.

    Thanks,
    Derrrick
    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, 20:21
  2. Dynamic grid layout
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2006, 15:19
  3. "dynamic" layout
    By hulk in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2006, 07:16
  4. How do I move a widget inside a grid Layout
    By barnabyr in forum Newbie
    Replies: 1
    Last Post: 8th May 2006, 23:23
  5. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45

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.