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. Qt Quick default window, using the mouse to stretch the window size with black borders
Forum Updated to NodeBB v4.3 + New Features

Qt Quick default window, using the mouse to stretch the window size with black borders

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
13 Posts 5 Posters 1.1k 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.
  • N Offline
    N Offline
    NeosYang
    wrote on last edited by NeosYang
    #1

    I created a new QtQuickApplication project using Qt Creator without any changes to the code. I used the mouse to drag and drop the edges of the window, and the speed was extremely fast. The window instantly displayed a black border.

    341f9931f1bed679f99769f014be27b3.png

    S 1 Reply Last reply
    0
    • N Offline
      N Offline
      NeosYang
      wrote on last edited by
      #2

      development environment:
      Qt Creator version: 14.0.1
      Qt version: 6.7.3
      compiler: MSVC2019

      1 Reply Last reply
      0
      • N NeosYang

        I created a new QtQuickApplication project using Qt Creator without any changes to the code. I used the mouse to drag and drop the edges of the window, and the speed was extremely fast. The window instantly displayed a black border.

        341f9931f1bed679f99769f014be27b3.png

        S Offline
        S Offline
        StudentScripter
        wrote on last edited by StudentScripter
        #3

        @NeosYang I had the same problem and posted here. Nobody had a working answer. I stuck to qt widgets cause of this, most things are more stable over there.

        Tested it on: Windows 10, 64bit with MinGW64 and LLVM, QT 6.7 using a NVDIA Graphicscard GTX 1050 Ti. AMD Ryzen 5 3600X.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          StudentScripter
          wrote on last edited by
          #4

          DAMN this thing is a problem with the core functionality of QML ... why hasn't this been fixed??? Or are we the only 2 persons experiencing this?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Since 6.8 came out, did you try it ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              Since 6.8 came out, did you try it ?

              S Offline
              S Offline
              StudentScripter
              wrote on last edited by
              #6

              @SGaist Just tried it with qt 6.8 the issue still persists. And as said it affects even the out of the box examples by QT themselfs...

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Then the next step is to check the bug report system to see if there's something related.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Matthias Rauter
                  wrote on last edited by
                  #8

                  This is a known issue, see https://bugreports.qt.io/browse/QTBUG-120051. As you can see in the comment section, this is quite a tricky problem and not only Qt is affected by it. As far as I know, we were able to fix it on Apple systems but didn't find a D3D API (yet), that would allow us to do the same for Windows.

                  S 1 Reply Last reply
                  0
                  • M Matthias Rauter

                    This is a known issue, see https://bugreports.qt.io/browse/QTBUG-120051. As you can see in the comment section, this is quite a tricky problem and not only Qt is affected by it. As far as I know, we were able to fix it on Apple systems but didn't find a D3D API (yet), that would allow us to do the same for Windows.

                    S Offline
                    S Offline
                    StudentScripter
                    wrote on last edited by
                    #9

                    @Matthias-Rauter Thanks alot, really a pitty tho i haven't experienced this problem with other graphicssoftware such as photoshop, aftereffects, blender, godot, affinity photo.

                    But well im neither experienced enough to make suggestions on how they might do it or how to make it better, just wondered and of course hoping for the best. ;)

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Matthias Rauter
                      wrote on last edited by
                      #10

                      I am currently writing in Chrome and it struggles with the same issue. I don't like it but I wasn't aware of it until right now. So hopefully your users won't notice either.
                      There are also some workarounds mentioned here, but they all have downsides: https://bugreports.qt.io/browse/QTBUG-107198 If this is really important to you, you might want to try those.

                      Anyway, we will stay on it and try to fix it :)

                      S 1 Reply Last reply
                      0
                      • M Matthias Rauter

                        I am currently writing in Chrome and it struggles with the same issue. I don't like it but I wasn't aware of it until right now. So hopefully your users won't notice either.
                        There are also some workarounds mentioned here, but they all have downsides: https://bugreports.qt.io/browse/QTBUG-107198 If this is really important to you, you might want to try those.

                        Anyway, we will stay on it and try to fix it :)

                        S Offline
                        S Offline
                        StudentScripter
                        wrote on last edited by StudentScripter
                        #11

                        @Matthias-Rauter Yep thank you

                        This fixes it completely, but sadly no GPU acceleration than

                        QQuickWindow::setGraphicsApi(QSGRendererInterface::Software);
                        

                        Also setting to this makes it better but not gone:

                        QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
                        

                        Using Vulkan or init setting is the worst:

                        QQuickWindow::setGraphicsApi(QSGRendererInterface::Vulkan);
                        

                        Idea: Use qt widgets for the mainwindow and embed a qtquick view with vulkan rendering for the gpu acceleration? Good or bad?

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          StudentScripter
                          wrote on last edited by
                          #12

                          Bumpin my question: Use qt widgets for the mainwindow and embed a qtquick view with vulkan rendering for the gpu acceleration? Good or bad practise?

                          1 Reply Last reply
                          0
                          • johngodJ Offline
                            johngodJ Offline
                            johngod
                            wrote on last edited by
                            #13

                            Just check my qml apps in windows 11, they do the same black borders, but also other programs like chrome do the same. Maybe it's a OS limitation / bug. Personally I dont think it's a big issue

                            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