it should be simple, once user logs in create a new window, and close the existing one.
void MainWindow::logInOk(void)
{
QWidget* new_window
= new NewWindow
("Username");
//you can have NewWindow based off QMainWindow.. any other QWidget() based class, or QWidget itself
this.close(); //to destroy
//this.hide(); // to reuse it sometime later;
}
void MainWindow::logInOk(void)
{
QWidget* new_window = new NewWindow("Username"); //you can have NewWindow based off QMainWindow.. any other QWidget() based class, or QWidget itself
this.close(); //to destroy
//this.hide(); // to reuse it sometime later;
}
To copy to clipboard, switch view to plain text mode
Bookmarks