On 25 Feb 2013, at 11:11 PM, Jim Hodapp wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm attempting to be notified in my QML application of when the > underlying QScreen instance (one that I've implemented for my platform > as a QPA plugin) changes the orientation property. In my QPA plugin, I > am calling QWindowSystemInterface::handleScreenOrientationChange() any > time after I set the orientation, and have also implemented the > orientation() function. I call it like so: > > QWindowSystemInterface::handleScreenOrientationChange(QPlatformScreen::screen(), > currentOrientation_); > > On my QML side, I simply have a Rectangle, and inside that rectangle I > have the following signal handler: > > Screen.onOrientationChanged: { > console.log("*** Screen Orientation: " + > orientationEnumToText(orient)); > } > > The only time I see this is immediately after my QML app is run using > qmlscene. The orientation value is the default value, namely > Qt.PrimaryOrientation. I'm confused why I'm not getting any other > signal calls from my QPA implementation in my QML app? I've also set > the orientationUpdateMask in my QPA plugin by calling > setOrientationUpdateMask() and passed it all 4 major orientations. > > What else do I need to do to get my signal handler in my QML app to be > called every time the orientation changes in the QPA plugin?
Sorry for the silence; it's a little early to answer this very specifically, because we are just now implementing it on a couple of platforms, and there are differences between them. So you are writing a new QPA plugin? Is this for Mir? _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest