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. Qt5 Qt::FramelessWindowHint doesn't add an window entry in the taskbar
Qt 6.11 is out! See what's new in the release blog

Qt5 Qt::FramelessWindowHint doesn't add an window entry in the taskbar

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 10.7k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    Itehnological
    wrote on last edited by
    #1

    I am trying to create a custom design window in Qt5 with QML, but whenever I set the
    @setFlags(Qt::FramelessWindowHint);@

    QtQuick2ApplicationViewer it doesn't create a window entry in the taskbar. I can't open it with the "Alt+Tab" menu too. Is that a bug, because according to the Qt5 documentation the FramelessWindowHint just removes the window border and title bar.

    Is there a way around?

    P.S. Windows 8, MinGW, Qt5, QtQuick 2. Also I am using QApplication instead of QGuiApplication because I am using some old-style QWidget based dialogs.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      holygirl
      wrote on last edited by
      #2

      If you mean the icon on the taskbar that is used to minimize/maximize/close etc the running application, then no, i guess it's not a bug because I've used FramelessWindowHint and it works fine for me.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        anaksimandr
        wrote on last edited by
        #3

        Try this

        @view->setFlags(Qt::FramelessWindowHint
        | Qt::WindowSystemMenuHint
        | Qt::WindowMinimizeButtonHint
        | Qt::Window);@

        It works for me but when I try to hide window with QML button
        @onButtonClick: _view.showMinimized();@
        I see this (in debug, not release)
        !http://img825.imageshack.us/img825/4854/snag0001.png(Assertion Failed!)!

        But if I click on icon in the taskbar all works fine.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          texpert
          wrote on last edited by
          #4

          Not sure about QML, but in C++ setWindowFlags not to Qt::Tool, but to Qt::ToolTip did the trick

          Sincerely yours, amigos!

          1 Reply Last reply
          0

          • Login

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