> First, make sure that you are using a recent version of PySide. The > recently released 1.0.0 beta 1 should be fine, you can also use the > buildscripts (from http://gitorious.org/pyside/buildscripts) to build > directly from Git and install it into $HOME.
I'm in the middle of updating to the latest source - it takes a while to build on my computer. I hope this will resolve the issue, but I was wondering if someone else had come across this behaviour. > A good way to update stuff is to subclass QObject and give it some > properties (that are ideally notifyable), and set this QObject as > context property. A good example is this tutorial (ignore the > threading part, just have a look at how the QObject is structured with > the properties and the notification signals, and how these properties > are accessed in QML): > > http://developer.qt.nokia.com/wiki/Updating_QML_content_from_Python_threads Thanks - I came across this example last week and it's really good. We've tried to use something like this already but found that the notify event wasn't causing the QML to automatically update (partly explaining our explicit code to set QML context properties). I'm hoping that an update to the latest code will fix this (we've been disinclined to update our sources before now as we've needed a stable platform to build on for our product. Issues like this, and especially now a 1.0 beta is out, make it harder to stick with what we have though!) > Improvement suggestions are very welcome, as I'm always looking for a > better and cleaner way to do these things. If you don't want to write > all that boilerplate code just for defining a QObject with some > properties that emit a signal when changed, try this (which is even > more hack-ish and might be an insult to a Python developer's eye, but > works for me for small projects): > > http://developer.qt.nokia.com/wiki/Auto-generating_QObject_from_template_in_PySide > > HTH. > Thomas Yes, it's all good stuff. We may well end up using something like the QObject auto-generator, thanks for the tip. Rob _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
