How to add a row of widgets army run time
-
This post is deleted!
-
This post is deleted!
@TimothyCole said in How to add a row of widgets army run time:
Is this something I can do with either QT creator or designer with UI files
How? If I understood you correctly you want to add rows dynamically while running, right? You will need to do it via code.
-
This post is deleted!
In addition to what @jsulm said:
All you could do is creating a custom widget (UI in Designer) and promote it or add it at runtime to your parent layout.
If you only need one or two, it's not efficient, but if you need like five or more layout rows with the same content (ComboBox + StackedWidget) and you dont want to use a static number of rows, it is worth it.Edit:
There is also anQUiLoader
[click] to load pre-designed UI-files at runtime (then you dont need to create a custom class for your content. Just insert your rows by loading your UI file multiple times and adding the result to your parent layout)