I am using this code to toggle a window from normal mode to fullscreen:
void MainWindow::on_action_Fullscreen_triggered()
{
showFullScreen();
}
How to return back to normal mode when I trigger this action again?
After a minute session with Qt's reference:
void MainWindow::on_action_Fullscreen_triggered()
{
isFullScreen() ? showNormal() : showFullScreen();
}