开发者

Multiple UI files for Qt mobile app

开发者 https://www.devze.com 2023-03-24 00:39 出处:网络
I have multpile ui files . I want to navigate througth them according to pushbutton clicks.开发者_运维百科

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

精彩评论

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