Important: Please read the Qt Code of Conduct -

how to display the icon in taskbar if the flag is set Qt.FramelessWindowHint qml

  • Hey. I put the flag: Qt.FramelessWindowHint and the program icon in taskbar is gone, and the minimumWidget and MinimumHeight is not working, how can I fix it?

  • Hi @Troffe

    For me, i don't think that you can with the FramelessWindowHint flag , since the Qt doc say Produces a borderless window.

  • @mostefa
    I found a solution. In qml there is an Import Statement: QtWinExtras 1.0 which is responsible for the buttons in the taskbar.
    Here is a simple example

    import QtQuick 2.7
    import QtWinExtras 1.0
    ApplicationWindow {
        id: applicationWindow
        visible: true
        width: 1200
        height: 640
        title: qsTr("Hello World")
        flags: Qt.Window | Qt.FramelessWindowHint
    TaskbarButton {
            overlay.iconSource: "link to picture"

Log in to reply