Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.11
-
None
-
macOS
Description
When switching a ColorOverlay's source between an item and null, the following warning in the title is printed. I would expect that there is no error, and the overlay simply does nothing.
import QtQuick 2.7 import QtQuick.Controls 2.3 import QtGraphicalEffects 1.0 ApplicationWindow { id: main visible: true width: 640 height: 480 Rectangle { id: rect color: "grey" width: 128 height: 128 anchors.centerIn: parent } MouseArea { id: mouseArea anchors.fill: rect hoverEnabled: true } ColorOverlay { id: hoveredEntityMarkerColorOverlay anchors.fill: rect source: mouseArea.containsMouse ? rect : null color: mouseArea.containsMouse ? "red" : "green" } }