Look at my main program
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
//MyWidget widget;
//widget.show();
AnalogClock clock;
clock.show();
return app.exec();
}
Lets' say I uncomment the Analogclock like above, the clock program are able to display.
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWidget widget;
widget.show();
//AnalogClock clock;
//clock.show();
return app.exec();
}
On the other hand, I uncomment the widget like above code, the menu page able to displayed.
So my problem is, how to I integrate the menu page with analogclock page, when I click the button of menu page, analogclock only will display.
Analogclock not really a menu right? setmenu is the correct library to be use?
Should I place the setmenu(); in the main function?
I apologize if I ask too silly question, my boss throw the whole qt and ask me to explore alone yet just give me a qt link. I am Headache already....




Reply With Quote
Bookmarks