I have a MainWindow supposed to be always on full screen mode. A Dialog pops up when button "Open Dialog" is clicked. On a desktop system, Ubuntu 20.04, the application works correctly.
When a Dialog pops up, the MainWindow remains at full screen mode. However, on JetsonNano Ubuntu 18.04, the Task bar pops up and the MainWindow is not at full screen mode when the Dialog is opened. Has anyone get the same problem? Why is the difference?
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->showFullScreen();
}
void MainWindow::on_btn_dialog_clicked()
{
Dialog *dialog = new Dialog();
dialog->show();
}