开发者

Multiple UI files for Qt mobile app

I have multpile ui files . I want to navigate througth them according to pushbutton clicks.开发者_运维百科

How can I control this in the code ? how can i do that?


Each ui file generally has cpp class assotiated with it.

Just create it and show.

class myGuiClass: public QWidget{...}; // class assotiated with ui

void SomeOtherClass::onSomePushButtonClicked()
{
    myGuiClass* wnd= new myGuiClass(this);
    wnd->show();
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜