Results 1 to 4 of 4

Thread: Layout runtime customization

  1. #1
    Join Date
    Mar 2008
    Posts
    15

    Default Layout runtime customization

    Hi!
    I just wonder if exist solution for runtime layout customization?( moving widgets on layout when app is runnning).

    If of course no, then which way is fastest to implement it? Or may be there some solution, which could be a begin for this one?

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

    Default Re: Layout runtime customization

    Yes, you can always use QLayout::addWidget and QLayout:::removeWidget.

  3. #3
    Join Date
    Mar 2008
    Posts
    15

    Default Re: Layout runtime customization

    No. I mean runtime drag'n'drop
    It must be done like in Qt designer(on moving show possible places, snap to other widgets etc ).
    Of course it's simple if for instance using gridlayout, but layout must be like "flow layout" in examples.

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

    Default Re: Layout runtime customization

    If you provide drag&drop facilities around the methods I mentioned then yes. But you have to implement it yourself.

Similar Threads

  1. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  2. Qt layout memory issue
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 25th August 2007, 17:11
  3. Resizing problems when applying a layout
    By JimBrown in forum Newbie
    Replies: 1
    Last Post: 21st February 2007, 22:54
  4. "dynamic" layout
    By hulk in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2006, 07:16

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.