Hi
I am new to Qt ..
I am creating Login page ...
If click submit button , it has go to another window or Widget...
So please suggest me ,How do set the submit button according to go to next page....
Thanks
Yuvaraj R
Hi
I am new to Qt ..
I am creating Login page ...
If click submit button , it has go to another window or Widget...
So please suggest me ,How do set the submit button according to go to next page....
Thanks
Yuvaraj R
hello,
use the signal and slots to connect to the subwindow or a widget
this in your login window
e.g
connect( your_submit_button, SIGNAL(clicked()), this, SLOT(you_sub_window_slot())) )
Here is one of such solutions:
1. QDialog has accept() and reject() methods
2. On your LoginDialog you input your credentials and press a button (let it be submitButton) and it emits a SIGNAL called clicked().
3. Create a slot: submitButtonClicked(). Connect a signal clicked() to a slot submitButtonClicked()
4. Inside your slot do your validations for received credentials and if everthing is ok call accept() method, otherwise - reject().
And using it will look like this
Qt Code:
YourLoginDialog loginDialog; // access granted, do you work } else { // sorry access denied }To copy to clipboard, switch view to plain text mode
I'm a rebel in the S.D.G.
Bookmarks