Results 1 to 2 of 2

Thread: Dynamic form layout - Ability to add new rows

  1. #1
    Join Date
    Jul 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Dynamic form layout - Ability to add new rows

    I've created a form with one row of inputs but I need to user to be able to add as many new rows as they want. Basically I need the Add Parameter button to work on this form. I've looked around for examples etc. but they all seem to be extending tables and the like. Just wondering how/if this is possible in my case?

    Screenshot: http://img710.imageshack.us/img710/5...meterinput.png

    Thanks
    Last edited by FaradayCage; 22nd July 2010 at 16:21. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Dynamic form layout - Ability to add new rows

    please attach you images here at the forum and not on 3rd party sites.

    You can use any QLayout class and can add widgets at run time. The layout will extends itself to get enough space to show your added widget(s). E.g. you can call QBoxLayout::addWidget() from a QVBoxLayout as often you want. (Also remove widgets!)

Similar Threads

  1. Resizing dialog with form layout
    By elizabeth.h1 in forum Qt Programming
    Replies: 2
    Last Post: 30th August 2009, 19:58
  2. Replies: 5
    Last Post: 2nd April 2007, 08:57
  3. Dynamic grid layout
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2006, 15:19
  4. Replies: 6
    Last Post: 5th March 2006, 21:05

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.