Results 1 to 2 of 2

Thread: Flow Layout

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Flow Layout

    Hi people

    I want to create a viewport mechanism, where i have a workspace (widget), and I want to add to it viewports (widget) in a dynamic way. So, the idea is to have different number of widgets in that workspace, and get them organized in a automatic way. For example, if I add just 1viewport, it will be displayed in all available space, if 2 viewports, they get organized side by side, 3 viewports should be displayed two on top (side by side), and the another one on the bottom.

    I tried to use flow layout, but the problem is that the viewports aren't expanding in available space. Do you know some easy way to do this, or I should implement a solution based in a GridLayout ?

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Flow Layout

    I think you should either implement your own QLayout subclass or use QGridLayout with some manual tweaking.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How do I implement a railway flow?
    By corrado1972 in forum Qwt
    Replies: 1
    Last Post: 13th February 2011, 09:17
  2. QTextTable flow options
    By Jencek in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2009, 09:25
  3. Flow Diagram
    By fruzzo in forum Newbie
    Replies: 5
    Last Post: 2nd December 2007, 18:45
  4. .qm file Call flow
    By Gaurav K SIngh in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 27th June 2007, 13:06
  5. sms flow in qtopia 4.1.4
    By awalesminfo in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th December 2006, 13:34

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.