Switch to next page after login
salahuddin last edited by
Hi, I'm quite a newbie in Qt, and am just exploring the functionality in Qt. I'm currently working on a project where I have to use MySql to find the user and view some data from the database that relates to the corresponding user. I'm using QStackedWidgets for the first pages (welcome and log in) but after login is successful, I'm not sure how I shall code the rest to get the content from the database. Should I just add a new page to the QStackedWidget or should I create a new .cpp file and switch to the new file after successful log in. After the user has logged in, it will be shown some kind of graphs and tables that comes from the database.
Hope anyone here can help me out of this.
Hi and welcome
While using QStackedWidget for all pages / screens could work just fine,
a more common design would/could be using
QDialog for welcome and login and when closed -
the main window for the graphs etc.