Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
6.4.2, 6.5.0
-
None
Description
https://doc.qt.io/qt-6/qquickitem.html#opacity-prop specifies that opacity is propagated to child items, but opacityChanged is not triggered for child items so it is impossible to react to an opacitychange in child items.
You might want to do something in the child when opacity changed. This is impossible now since only the parent gets the message that the opacity changed.
- Unpack 7zip
- Go to QtBugReproducer
- cd build
- cmake.exe -A x64 -T v143 ..
- start devenv.exe QtQMLGraphicsItems.sln
- build project
- call %QT_ROOT_64%\bin\windeployqt.exe --qmldir . build\Debug\QtQMLGraphicsItems.exe (from the source directory)
- Start the executable
- Use button to change opacity
- Observe console ouptut
- Change line 31 in main.qml
- Rebuild
- Start executable
- Use button to change opacity
- Observe console output
Expected:
9) Both Rectancle 1 and 2 should print that opacity changed
15) Both Rectangle 1 and 2 should print that opacity changed
Observed
9) Only Rectangle 1 prints that opacity changed
15) Both Rectangle 1 and 2 should print that opacity changed (but the code change in (11) should not have been needed.