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. Qml 6 Bug on Window Restore from Task Bar
Forum Updated to NodeBB v4.3 + New Features

Qml 6 Bug on Window Restore from Task Bar

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 4 Posters 829 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.
  • N Offline
    N Offline
    Nan Feng
    wrote on 30 Apr 2024, 15:22 last edited by
    #1

    alt text

    Hi guys. I've found a serious QML issue. In Qt 6.6, 6.7, 6.8, other versions were not tested. Out of necessity, I need to implement a minimized borderless transparent form myself. Here's the code, it's very simple:

    import QtQuick
    import QtQuick.Controls.Basic
    
    Window {
        id: _app
        width: 640
        height: 480
        visible: true
        title: ""
        flags: Qt.Window |Qt.FramelessWindowHint
        color: "#00000000"
    
    Rectangle {
            width: 600
            height: 440
            anchors.centerIn: parent
    
    Row{
                Button {
                    text: "Min"
                    onClicked: () => _app.showMinimized()
                }
            }
        }
    
    }
    

    Click the button to minimize the program, click the taskbar to restore, however, the question arises, what is in the upper left corner? Didn't I set the title? Why is this? I think this is a serious bug.

    M J 2 Replies Last reply 30 Apr 2024, 16:53
    0
    • N Nan Feng
      30 Apr 2024, 15:22

      alt text

      Hi guys. I've found a serious QML issue. In Qt 6.6, 6.7, 6.8, other versions were not tested. Out of necessity, I need to implement a minimized borderless transparent form myself. Here's the code, it's very simple:

      import QtQuick
      import QtQuick.Controls.Basic
      
      Window {
          id: _app
          width: 640
          height: 480
          visible: true
          title: ""
          flags: Qt.Window |Qt.FramelessWindowHint
          color: "#00000000"
      
      Rectangle {
              width: 600
              height: 440
              anchors.centerIn: parent
      
      Row{
                  Button {
                      text: "Min"
                      onClicked: () => _app.showMinimized()
                  }
              }
          }
      
      }
      

      Click the button to minimize the program, click the taskbar to restore, however, the question arises, what is in the upper left corner? Didn't I set the title? Why is this? I think this is a serious bug.

      M Offline
      M Offline
      mzimmers
      wrote on 30 Apr 2024, 16:53 last edited by
      #2

      @Nan-Feng I'm not sure whether this qualifies as a bug or not, but if you remove the alpha channel from your Window color, it seems to work better.

      color: "#000000"
      

      or (better):

      color: "transparent"
      
      N 1 Reply Last reply 1 May 2024, 02:09
      0
      • N Nan Feng
        30 Apr 2024, 15:22

        alt text

        Hi guys. I've found a serious QML issue. In Qt 6.6, 6.7, 6.8, other versions were not tested. Out of necessity, I need to implement a minimized borderless transparent form myself. Here's the code, it's very simple:

        import QtQuick
        import QtQuick.Controls.Basic
        
        Window {
            id: _app
            width: 640
            height: 480
            visible: true
            title: ""
            flags: Qt.Window |Qt.FramelessWindowHint
            color: "#00000000"
        
        Rectangle {
                width: 600
                height: 440
                anchors.centerIn: parent
        
        Row{
                    Button {
                        text: "Min"
                        onClicked: () => _app.showMinimized()
                    }
                }
            }
        
        }
        

        Click the button to minimize the program, click the taskbar to restore, however, the question arises, what is in the upper left corner? Didn't I set the title? Why is this? I think this is a serious bug.

        J Offline
        J Offline
        JoeCFD
        wrote on 30 Apr 2024, 18:33 last edited by JoeCFD
        #3

        @Nan-Feng This issue does not exist on Ubuntu 22.04. I tested it with 6.7.0

        N 1 Reply Last reply 1 May 2024, 03:20
        0
        • M mzimmers
          30 Apr 2024, 16:53

          @Nan-Feng I'm not sure whether this qualifies as a bug or not, but if you remove the alpha channel from your Window color, it seems to work better.

          color: "#000000"
          

          or (better):

          color: "transparent"
          
          N Offline
          N Offline
          Nan Feng
          wrote on 1 May 2024, 02:09 last edited by
          #4

          @mzimmers Hi, the color can't be #000000 because I need transparent forms, so #00000000 and transparent are ok. But it will all appear in my screenshots.

          N 1 Reply Last reply 1 May 2024, 02:10
          0
          • N Nan Feng
            1 May 2024, 02:09

            @mzimmers Hi, the color can't be #000000 because I need transparent forms, so #00000000 and transparent are ok. But it will all appear in my screenshots.

            N Offline
            N Offline
            Nan Feng
            wrote on 1 May 2024, 02:10 last edited by
            #5

            @Nan-Feng I didn't test Ubuntu and had this issue on Windows 10.

            1 Reply Last reply
            0
            • J JoeCFD
              30 Apr 2024, 18:33

              @Nan-Feng This issue does not exist on Ubuntu 22.04. I tested it with 6.7.0

              N Offline
              N Offline
              Nan Feng
              wrote on 1 May 2024, 03:20 last edited by
              #6

              @JoeCFD I tested 5.15.2 again on Windows 10 and found that it was very similar, that is, after the taskbar was restored, the cyan area would flash for a moment, specifically appear and disappear, less than a second before and after. This is persistent in Qt6,

              J 1 Reply Last reply 1 May 2024, 15:19
              0
              • N Nan Feng
                1 May 2024, 03:20

                @JoeCFD I tested 5.15.2 again on Windows 10 and found that it was very similar, that is, after the taskbar was restored, the cyan area would flash for a moment, specifically appear and disappear, less than a second before and after. This is persistent in Qt6,

                J Offline
                J Offline
                JoeCFD
                wrote on 1 May 2024, 15:19 last edited by JoeCFD 5 Jan 2024, 15:20
                #7

                @Nan-Feng File a bug report to Qt with your test code. Could be OS related. If the issue exists in both Qt5 and 6, Qt guys may fix it quickly.

                N 1 Reply Last reply 1 May 2024, 15:52
                0
                • J JoeCFD
                  1 May 2024, 15:19

                  @Nan-Feng File a bug report to Qt with your test code. Could be OS related. If the issue exists in both Qt5 and 6, Qt guys may fix it quickly.

                  N Offline
                  N Offline
                  Nan Feng
                  wrote on 1 May 2024, 15:52 last edited by
                  #8

                  @JoeCFD Thank you. Where to submit, can you send me an entrance?

                  J 1 Reply Last reply 1 May 2024, 15:57
                  0
                  • N Nan Feng
                    1 May 2024, 15:52

                    @JoeCFD Thank you. Where to submit, can you send me an entrance?

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 1 May 2024, 15:57 last edited by
                    #9

                    @Nan-Feng https://bugreports.qt.io/secure/Dashboard.jspa

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jds21 0
                      wrote on 14 Oct 2024, 06:51 last edited by
                      #10

                      For info, and for people arriving from a web search, the Qt bug that was filed is here: https://bugreports.qt.io/browse/QTBUG-125037

                      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