Em Friday, 6 de May de 2011, às 15:16:32, Cornelius Hald escreveu:
> On Fri, 2011-05-06 at 15:05 +0200, Thiago Macieira wrote:
> > Em Friday, 6 de May de 2011, às 14:46:15, Cornelius Hald escreveu:
> > > I thought I'll try a workaround and use MTF only for rotation.
> > > Unfortunately it looks like that's not that easy since MWindow and
> > > QWidget are not quite compatible.
> > >
> > > I really hope we get some framework support for that.
> >
> > You're using QWidget?
>
> I'm using QDeclarativeView as my root widget, which is a QWidget. How
> else could I use QML? Can I somehow use QML without QDeclarativeView?

Ah, no problem then. But you need to get the sensors information from the
Mobility Sensors and apply the transform yourself and animate however you
want.

Components (both of them) do it for you.

> Wouldn't a work-around be to rotate my root QML item? If yes, where do I
> get the physical orientation of the device from? Is there Qt API for
> that?

Yes, use the Sensors.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to