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();
}
精彩评论