开发者

Qt, widget generated with inheritance?

I remember when messing around with Qt seeing something w开发者_StackOverflow社区here it was like

class MyForm : QDialog
{

}

Instead of

class MyForm
{
    void SetupUi(QDialog* dialog);
}

How do you generate the inherited form?


It is the new and only way to setup your UI since Qt 4.0. Like it or not, you can always alter the generated code before building.

Here's an article on porting .ui files to Qt 4.x - http://qt.nokia.com/doc/4.0/porting4-designer.html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜