Hi all,
We're developing a QML/Python application using PySide. We need to
update the display from within python so we've done the following:
QML snippet:
Item {
Text {
id: myText
opacity: my_test_opacity
text: "Hello World"
}
}
Python:
# Hide text
rootContext.setContextProperty( "my_test_opacity", 1 )
The problem with this method is that when we run the application there
are large number of reference errors from the qml files - in the
example code here, the qml file doesn't have any knowledge of
my_test_opacity until we explicitly set it in the python.
This doesn't seem to cause any problems in the user interface - it all
works as we expect it to - but it's a little disconcerting to see all
the errors!
It also indicates that perhaps we're using the wrong technique here -
can anyone recommend a better/different way of updating the interface
from python that doesn't invoke ReferenceErrors? Is there a best
practise recommendation?
Thanks,
Rob
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside