Hello, I'm quite new to QT and trying to design a Ui in QT-Designer that automatically adds a new groupBox when a pushButton is clicked. I've put everything in a Scroll area so that we can add unlimited numbers of items.
I could find a close() slot that works... (it make the groupBox disappear)... But is there no create() slot ?
How do I dynamically create a new GroupBox when the button is clicked ? Here's a screen shot of what I mean:
I don't mind even complicated solutions... the important thing is that it works! Perhaps this could be achieved with the use of UiLoader ??
What do you think?
Any advice would be much appreciated!
Thanks.![]()
Bookmarks