Results 1 to 3 of 3

Thread: How to make layout dynamical?

  1. #1
    Join Date
    Nov 2009
    Posts
    94
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to make layout dynamical?

    Hello,

    I have the following problem:
    I would like to add multiple QwtPlots into a QFrame (within a for loop), so that as soon as in first row of frame no further QwtPlot fits in, then the nex added QwtPlots should be placed on the second row and so on. Is there a flag I can set, so that the "line break" is done automatically? I don't want to use GridLayout, because then I have to define after which number of QwtPlots the line break should come, but I would like to use Horizontal Layout. Help me please.

    Thank you.

    best regards,

    Vitali

  2. #2
    Join Date
    Apr 2009
    Location
    Italy
    Posts
    70
    Thanks
    23
    Thanked 15 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to make layout dynamical?

    Maybe the "Flow Layout Example" is what you are looking for:

    http://qt.nokia.com/doc/4.6/layouts-flowlayout.html

    (I have never used it)

  3. The following user says thank you to mattc for this useful post:

    rambo83 (6th January 2010)

  4. #3
    Join Date
    Nov 2009
    Posts
    94
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to make layout dynamical?

    Thank you. It does exactly what I want! Great

Similar Threads

  1. Replies: 6
    Last Post: 10th March 2011, 16:42
  2. Dynamical LineEdit and signals
    By martisho in forum Qt Programming
    Replies: 5
    Last Post: 10th November 2009, 15:39
  3. Replies: 0
    Last Post: 25th May 2009, 10:00
  4. Replies: 8
    Last Post: 8th April 2009, 19:51
  5. Replies: 7
    Last Post: 15th June 2007, 16:13

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.