QT QTabWidget Dynamically add interface Dynamically add controls Dynamically assign values to controls

Dynamic use

ui interface

Insert picture description here

Code

It is mainly to dynamically add tabWidget pages and dynamically add QLineEdit in the page, and
finally assign values ​​to the dynamically added QLineEdit

#include <QLabel>
#include <QLineEdit>
#include <QBoxLayout>

Guess you like

Origin blog.csdn.net/qq_45646951/article/details/114985355