but i got this compile time error: error: no matching function for call to ‘QObject::connect(QPushButton*&, constchar [11], Ui_MainWindow* const, constchar [16])’
can anyone help me?!
I'm fairly certain that you need to set up your Ui_MainWindow class to have signal and slot mechanisms. The easiest way would be to change your code to something like this:
another question!
in entrancePage() function i wanna show another page instead of writing a message in the console..but i have no idea how to do this..
should my classes inherit from QObject or QWidget??
should i create a new QMainWindow ??
i am using Qt designer for creating my pages..
Make that "next page" the central widget of your main window. Set it disabled/hidden at start.
Create a separate "login" dialog. Show it at start. Connect the "successfully closing" signal of the dialog into a slot of the main window that enables the central widget.