[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: get rid of unnecessary qsg renderer bug workaround rectangle in `DragItem`

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 30 20:16:09 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7379a7b8 by Fatih Uzunoglu at 2026-04-30T19:38:23+00:00
qml: get rid of unnecessary qsg renderer bug workaround rectangle in `DragItem`

We already have a shadow here that is beneath the image which also
acts as a workaround for the Qt scene graph renderer bug, we don't
need an extra rectangle here.

- - - - -
b8852912 by Fatih Uzunoglu at 2026-04-30T19:38:23+00:00
qml: use shadow as a workaround for qsg renderer bug in `MusicArtistDelegate`

- - - - -


2 changed files:

- modules/gui/qt/medialibrary/qml/MusicArtistDelegate.qml
- modules/gui/qt/widgets/qml/DragItem.qml


Changes:

=====================================
modules/gui/qt/medialibrary/qml/MusicArtistDelegate.qml
=====================================
@@ -189,18 +189,8 @@ T.ItemDelegate {
 
             fillMode: Image.PreserveAspectCrop
 
-            // FIXME: Qt bug (observed 6.2 and 6.8): Without an alpha node beneath the image, the image does not get rendered.
-            Rectangle {
-                z: -1
+            Widgets.DefaultShadow {
 
-                anchors.centerIn: parent
-
-                width: 1
-                height: 1
-
-                opacity: 0.01
-
-                color: "black"
             }
         }
 


=====================================
modules/gui/qt/widgets/qml/DragItem.qml
=====================================
@@ -565,20 +565,6 @@ Item {
                 DefaultShadow {
 
                 }
-
-                // FIXME: Qt bug (observed 6.2 and 6.8): The image does not get rendered without this.
-                Rectangle {
-                    z: -1
-
-                    anchors.centerIn: parent
-
-                    width: 1
-                    height: 1
-
-                    opacity: 0.01
-
-                    color: "black"
-                }
             }
         }
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/23a8ea51986eb25c45925682c07eac0c5b587c1c...b8852912334576e0efa42e8e4733cf645836c44f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/23a8ea51986eb25c45925682c07eac0c5b587c1c...b8852912334576e0efa42e8e4733cf645836c44f
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list