First off, you have the concept of stacked widgets wrong....if you search this forum you can get the answers to most of your questions...for example look at this thread http://www.qtcentre.org/threads/3313...hlight=stacked. The widgets are placed on each page of the stacked widget, not separate forms for the stacked widget. I would strongly suggest getting a book on C++ and QT. But to help you out a bit, there are several ways to accomplish what you are looking for. In your main window, place the stacked widget, put the widgets that you want on each widget (change the "stack" by clicking on the arrow in the upper right corner of the stacked widget. Then you have to become familiar with signals and slots to navigate your forms or perform any action based on the users actions. In your case, one way is to right click on your button#1 and go to slots. Then click on the appropriate signal (clicked()). This will create the definition of your slot and you have to code in there what you want to do. All controls can be accessed by thier appropriate properties. I did a little down and dirty modification of your project as an example.
stacknew.zip
I hope this helps....I would get a book to help you understand and also search these forums...If you are a newbie, then your question probably has already been asked and answered.
Bookmarks