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



  • 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.



  • 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.



  • 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.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.