Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to display the icon in taskbar if the flag is set Qt.FramelessWindowHint qml
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 2.4k Views 2 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.
  • T Offline
    T Offline
    Troffe
    wrote on last edited by Troffe
    #1

    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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by
      #2

      Hi @Troffe

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Troffe
        wrote on last edited by Troffe
        #3

        @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"
            }
        }
        
        
        1 Reply Last reply
        1

        • Login

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