码迷,mamicode.com
首页 > 其他好文 > 详细

How to use Qt Designed Ui file

时间:2018-04-07 17:48:34      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:designer   blog   code   header   pos   log   clu   include   gpo   

Ui Designed file

  1. In Working, we can use Qt Designer to designe UI;
  2. Then, use uic -o head.h designe.ui to create ui_header.h file;
  3. 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);

How to use Qt Designed Ui file

标签:designer   blog   code   header   pos   log   clu   include   gpo   

原文地址:https://www.cnblogs.com/zi-xing/p/8597481.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!