Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
QDS 4.4
-
None
-
Qt Design Studio 4.4.0 Based on Qt 6.5.4 (MSVC 2019, x86_64) Built on Jan 22 2024 10:21:05 From revision ef2f76b2d8
OS: Windows 11 Pro, Version 22H2, OS build 22621.2861.
64-bit operating system, x64-based processor
-
-
1
-
c5f86ea0b (qds/dev)
-
QDS Oulu - 2024 Week 5/6
Description
Preconditions
- Create a New Effect
- Save it in order to generate the QML code
- Assign the Effect to an item in Screen01.ui.qml
Description
The generated QML file doesn't expose any property / function that would allow a user to enable/disable the effect depending on application's state, conditions or user action.
For example, I'd like to enable a snow effect on the background of the main window when a checkbox is checked.
The only way to do that is to directly access the parent of the effect and modify its layer.enabled property. Since the parent properties are set internally by the Effect implementation, it'd be cumbersome if a user needs to access them directly. There's no way to enable/disable the effect by the properties exposed by the effect itself.