How to use Qt Designed Ui file
Ui Designed file
- In Working, we can use Qt Designer to designe UI;
- Then, use
uic -o head.h designe.ui
to create ui_header.h file; - When use this Ui, First, include head file, then
namespace Ui {
class Edit: public Ui_Form {};
} // namespace Ui
QWidget* wgt = new QWidget(this);
Ui::Edit* it = new Ui::Edit;
it->setupUi(wgt);
版权声明:本博文属于作者原创或从其他地方学习而来的博文,未经许可不得转载.