It sounds like your creating a wizard - multiple pages and a button to go from one page to the next.
If so, instead of doing that, take a look at QWizard - http://doc.qt.nokia.com/4.7/qwizard.html
It sounds like your creating a wizard - multiple pages and a button to go from one page to the next.
If so, instead of doing that, take a look at QWizard - http://doc.qt.nokia.com/4.7/qwizard.html
wreckx (19th November 2010)
Thank you for your reply Squidge.
actually i want to call my xxxx.UI pages .. 4 pages in total "just like a website"
ok here are the plan :
-button Map ---> go to page1.ui (Forms)
-button Fair ---> go to page2.ui (Forms)
-button Attraction ---> go to page3.ui (Forms)
-button About BTS ---> go to page4.ui (Forms)
each button goes to different Forms.UI i really need something to call the Forms.ui because i made all differentes pages with different forms .. i use that for the design
when i create a button in my Forms.UI i insert a push button then right click and Go to slot.. then choose "Clicked()" and i have this script come out
void MainWindow: On_pushButton_clicked()
{
}
can i just write something here to call the other Form (page2.ui) page on the button ??
like for exemple
void MainWindow: On_pushButton_clicked()
{
on clicked "fair button" -> show page2.ui
etc.....
}
then for page 3
void MainWindow: On_pushButton_clicked()
{
on clicked "attraction button" -> show page3.ui
etc.....
}
???????????????????????????
thank you
Max
All the other pages derived from QDialog? If so, just use
to open the form.
like so:
Qt Code:
void MainWindow:On_pushButton_clicked() { page2->exec(); }To copy to clipboard, switch view to plain text mode
of course 'page2' has be created somewhere (either on the stack or dynamically using 'new')
wreckx (20th November 2010)
Bookmarks