Results 1 to 3 of 3

Thread: I'm getting frustrated with the designer.

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default I'm getting frustrated with the designer.

    I want to puta lot of groupboxes and buttons etc. in the left hand side of the mainwindow, and the rest should be used for a graphicsview that should change size accordingly.
    But how the heck do I do this?
    If anyone would care to suggest an order in which I should add components, please tell me.
    Let's make the left part consist of only a pushbutton and two groupboxes containing a push buton each, the right part should be a graphicsview.

  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: I'm getting frustrated with the designer.

    Just drag QGraphicsView, group boxes and buttons onto your form, set layouts for group boxes and then click "Lay Out in a Grid".

    I use 4.2.0-snapshot-20060830 and IIRC QGraphicsView might not be available in Qt Designer in earlier snapshots.
    Attached Files Attached Files

  3. #3
    Join Date
    Mar 2006
    Location
    Mexico City
    Posts
    31
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: I'm getting frustrated with the designer.

    Morea:

    First add group boxes and push buttons on the left side, and be sure that the size policy for this components, is "minimum". Lay them out vertically. Then add a frame for the graphic side to the right, and be sure to use as size policy "expanding".

    Lay out every thing in a grid. That should work. I'm using Qt designer 3.3.4, but this should work in any 3.x version.

    If you need the files for this example, let me know.

    Jorge

Similar Threads

  1. Replies: 4
    Last Post: 10th October 2009, 17:59
  2. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  3. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28
  4. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 14:01
  5. Replies: 2
    Last Post: 14th February 2006, 15:28

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.