PDA

View Full Version : Adding dinamically fields in my form



Andre Froes
5 Oct 2010, 5:37 AM
How can I add dinamically fields in my form?

I'm building this layout for it:

___________________________________________

Qt: |----textField----| Mat: |----Combobox----|

| (button) Add another field |

|-OK-| |-Cancel-|

___________________________________________

everytime when the button "Add another field" is pressed, it will create another field equal to that one that is already being showed.
Does any1 has an example or link to help me?

Condor
5 Oct 2010, 6:13 AM
Simply add (or insert) another component in the container and call doLayout().