Problems with QML Bindings
-
wrote on 5 Aug 2015, 15:14 last edited by Lixcode 8 May 2015, 15:14
Hi! I have a class with a QVariantMap property which contains a color scheme. I use Q_PROPERTY. I set colors like
color: style.win_background;
. Thestyle
declaration:property var style: theme.data;
onStyleChanged: { console.log("Changed"); }
When I change the win_background property ofstyle
I get in console the message:qml: Changed
but the window color is not changed. What I am doing wrong? -
wrote on 5 Aug 2015, 18:03 last edited by
Try calling styleChanged() after modifying style.
-
wrote on 7 Aug 2015, 16:09 last edited by
Thanks! I fix the problem. All works fine, but I have a Rectangle over that hide the window background and that was the problem.
1/3