Generate .h and .cpp from .ui file

前端 未结 6 659
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 12:54

Suppose I have the file about.ui. How can I make the \"about.h\" and the \"about.cpp\" from my .ui file?

6条回答
  •  不思量自难忘°
    2020-12-29 13:24

    You don't.
    The about.ui generates a ui_about.h which you include in your own about.h

    You then create you own class deriving from this class

    class about :   public QDialog, public Ui::about
    {
        Q_OBJECT;
    ....
    }
    

提交回复
热议问题