Hi,
I can create an application with Qt designer to display an ui. Works fine. This ui (mainform) has a QMenubar and by choosing a certain menu item I want to display another ui (Form2).
What do I need for this? I have so far:
- 2 ui Files (mainform and Form2) created with Qt designer.
- I need a sender/slot relation Sender: menuAction Signal: activated() Receiver: mainform or Form2? Slot: showform()
- The implementation of showform so far
void mainform::showform()
{
Form2 z;
z.show(); // anlogue to what happens in main.cpp
}
Anyway the compiler throws an error, the guess is probably too easy....
What would be the correct way to do it?
Regards,
Jochen
Bookmarks