Prevent Taskbar from displaying in QWidget Fullscreen application.
-
wrote on 7 Apr 2023, 03:48 last edited by
Hi,
I have created a QWidget application.
In main.cpp:#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.showFullScreen();
return a.exec();
}In mainwindow.cpp:
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);this->setWindowFlags( Qt::WindowStaysOnTopHint );
}
I have created a button. When I click the button, a batch file starts running. When I click the button, taskbar displays on top of the window. covers the bottom part.
How to prevent taskbar from displaying.Any help would be appreciated.
Thanks.
1/1