[Interest] Qt extern library bindin problem

Damian Ivanov damianatorrpm at gmail.com
Thu Nov 14 17:13:35 CET 2013


There is a library available that exposes Linux GSettings to qml see:

Now I try to use it in my .qml

import QtQuick 2.1
import QtQuick.Controls 1.1
import GSettings 1.0
import QtQuick.Window 2.1

Window {

 GSettings {
        id: test
        schema.id: "org.test.test" //I created this schema but it
doesn't work with any
        onChanged: changes.push([key, value]);
 color: test.testcolor

Whatever I do it says "unable to assign [undefined] to QColor, but if
I try to set the value like from a button test.testcolor = mycolor The
color gets properly set, but reading always returns undefined.
Anyone an idea?

More information about the Interest mailing list