Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QtGraphicalEffects usage questioning

$
0
0
+1 Nice idea, I use “many” overlay effects in my app so your second syntax would be a relief. I do use the first syntax mentioned in the doc so far, because as you mentioned it is impossible to access the effect with an id and maybe other “bugs” related to that? Also with this syntax you can only apply one effect to an item, and not 2 or more or am I missing something? The layer property should be an array and may be used like states and transitions (so you can assign a single value if you only need one). e.g. Image {  source: "images/butterfly.png"  layer.effects: [   Desaturate { desaturation: 1 },   BrightnessContrast { brightness: -0.5 }  ] } I called the property “effects” in that example, that doesn’t exists obviously :D

Viewing all articles
Browse latest Browse all 4972

Trending Articles