Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Prevent Taskbar from displaying in QWidget Fullscreen application.
Forum Updated to NodeBB v4.3 + New Features

Prevent Taskbar from displaying in QWidget Fullscreen application.

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 121 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mbatra
    wrote on 7 Apr 2023, 03:48 last edited by
    #1

    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 Reply Last reply
    0

    1/1

    7 Apr 2023, 03:48

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved