Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
Ville M. Vainio wrote: On Sat, May 7, 2011 at 12:33 PM, Andrew Flegg and...@bleb.org wrote: This has been discussed - and agreed before - but the changes never seemed to happen :-( I think the agreed approach now is to educate rather than fix. I think you mean the approach being adopted - agreed implies, well, agreement :) Cheers, Dave. -- Email: dne...@maemo.org Jabber: bo...@jabber.org ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On May 7, 2011, at 2:33 AM, Andrew Flegg wrote: On Sat, May 7, 2011 at 05:56, Randall Arnold tex...@ovi.com wrote: On Fri, 2011-05-06 at 16:31 +0200, Cornelius Hald wrote: On Fri, 2011-05-06 at 07:20 -0700, Foster, Dawn M wrote: Please post future application development questions to meego-sdk. Ah sorry. I thought meego-sdk is for the development of the SDK... I think I made that mistake before. Somehow the name is not very intuitive :) I have to agree with Conny. Maybe a rename to meego-app would make more sense... This has been discussed - and agreed before - but the changes never seemed to happen :-( The suggestion to rename the mailing lists was discussed but never agreed to. I, for one, don't believe that renaming the list will solve the problem for reasons already discussed. To refresh your memory :) http://lists.meego.com/pipermail/meego-community/2010-December/002922.html Dawn ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Sat, May 7, 2011 at 05:56, Randall Arnold tex...@ovi.com wrote: On Fri, 2011-05-06 at 16:31 +0200, Cornelius Hald wrote: On Fri, 2011-05-06 at 07:20 -0700, Foster, Dawn M wrote: Please post future application development questions to meego-sdk. Ah sorry. I thought meego-sdk is for the development of the SDK... I think I made that mistake before. Somehow the name is not very intuitive :) I have to agree with Conny. Maybe a rename to meego-app would make more sense... This has been discussed - and agreed before - but the changes never seemed to happen :-( Cheers, Andrew -- Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Sat, May 7, 2011 at 12:33 PM, Andrew Flegg and...@bleb.org wrote: I have to agree with Conny. Maybe a rename to meego-app would make more sense... This has been discussed - and agreed before - but the changes never seemed to happen :-( I think the agreed approach now is to educate rather than fix. ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
[MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
Hi, in my C++/QML application I want to lock the screen orientation to portrait mode. How I can I do that? There was a thread about this a month ago but without clear answer. I've got working solutions for Maemo5 and Symbian and now I'm testing on MeeGo/Tablet 1.2 on ExoPC. For MeeGo I'm using Qt::WA_LockPortraitOrientation which was included in Qt 4.7.2. Should it work? Are there other options? Thanks! Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, May 6, 2011 at 11:09 AM, Cornelius Hald h...@icandy.de wrote: Hi, in my C++/QML application I want to lock the screen orientation to portrait mode. How I can I do that? There was a thread about this a month ago but without clear answer. The spec says there should be orientationLock: http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-373 Apparently, there isn't, file a bug :). For MeeGo I'm using Qt::WA_LockPortraitOrientation which was included in Qt 4.7.2. Should it work? Are there other options? Those only work on Symbian AFAICT. ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 2011-05-06 at 13:42 +0300, Ville M. Vainio wrote: The spec says there should be orientationLock: http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-373 Apparently, there isn't, file a bug :). Hmm, you're revering to Qt Compontents. I don't use them, so I'd need a pure Qt solution. For MeeGo I'm using Qt::WA_LockPortraitOrientation which was included in Qt 4.7.2. Should it work? Are there other options? Those only work on Symbian AFAICT. To me it looks like that API would be the way to go. Also interesting if I use the QML/C++ Wizzard in MeeGo SDKs Qt Creator, it creates code using this API. I'll file a bug. Thanks! Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
Bug filed: https://bugs.meego.com/show_bug.cgi?id=17200 Cheers, Conny On Fri, 2011-05-06 at 13:02 +0200, Cornelius Hald wrote: On Fri, 2011-05-06 at 13:42 +0300, Ville M. Vainio wrote: The spec says there should be orientationLock: http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-373 Apparently, there isn't, file a bug :). Hmm, you're revering to Qt Compontents. I don't use them, so I'd need a pure Qt solution. For MeeGo I'm using Qt::WA_LockPortraitOrientation which was included in Qt 4.7.2. Should it work? Are there other options? Those only work on Symbian AFAICT. To me it looks like that API would be the way to go. Also interesting if I use the QML/C++ Wizzard in MeeGo SDKs Qt Creator, it creates code using this API. I'll file a bug. Thanks! Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
Em Friday, 6 de May de 2011, às 13:02:38, Cornelius Hald escreveu: On Fri, 2011-05-06 at 13:42 +0300, Ville M. Vainio wrote: The spec says there should be orientationLock: http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-373 Apparently, there isn't, file a bug :). Hmm, you're revering to Qt Compontents. I don't use them, so I'd need a pure Qt solution. For MeeGo I'm using Qt::WA_LockPortraitOrientation which was included in Qt 4.7.2. Should it work? Are there other options? Those only work on Symbian AFAICT. To me it looks like that API would be the way to go. Also interesting if I use the QML/C++ Wizzard in MeeGo SDKs Qt Creator, it creates code using this API. The WA things work by telling the window manager what to do. On MeeGo, with mcompositor, the window manager doesn't do anything (or didn't use to). It's the application that drew itself 90° rotated. That means pure Qt apps simply don't rotate unless you write the rotation code itself. If you're using MTF classes, this is implemented there though. -- 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 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
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 2011-05-06 at 13:25 +0200, Thiago Macieira wrote: The WA things work by telling the window manager what to do. On MeeGo, with mcompositor, the window manager doesn't do anything (or didn't use to). It's the application that drew itself 90° rotated. That means pure Qt apps simply don't rotate unless you write the rotation code itself. If you're using MTF classes, this is implemented there though. Thanks for the explanation. But what is the solution? I don't think each app developer wants to write his/her own rotation code (I certainly don't). And MTF is deprecated. What am I missing? Thanks! Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 2011-05-06 at 13:30 +0200, Cornelius Hald wrote: On Fri, 2011-05-06 at 13:25 +0200, Thiago Macieira wrote: The WA things work by telling the window manager what to do. On MeeGo, with mcompositor, the window manager doesn't do anything (or didn't use to). It's the application that drew itself 90° rotated. That means pure Qt apps simply don't rotate unless you write the rotation code itself. If you're using MTF classes, this is implemented there though. Thanks for the explanation. But what is the solution? I don't think each app developer wants to write his/her own rotation code (I certainly don't). And MTF is deprecated. What am I missing? 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. Cheers, Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
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? Then I'm sorry, there's no good rotation practice within Qt. You need help from the window manager / compositor and mcompositor won't do that for you. The only way to do this from inside the application is to do it manually by placing the widget inside a QGraphicsProxyWidget and then rotate the graphics view. This is extremely slow and not recommended. Actually, using QWidget is not recommended. -- 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 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
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
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? Then I'm sorry, there's no good rotation practice within Qt. You need help from the window manager / compositor and mcompositor won't do that for you. The only way to do this from inside the application is to do it manually by placing the widget inside a QGraphicsProxyWidget and then rotate the graphics view. This is extremely slow and not recommended. Actually, using QWidget is not recommended. 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? Thanks for bearing with me. Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 6 May 2011, Thiago Macieira wrote: You're using QWidget? Then I'm sorry, there's no good rotation practice within Qt. You need help from the window manager / compositor and mcompositor won't do that for you. The only way to do this from inside the application is to do it manually by placing the widget inside a QGraphicsProxyWidget and then rotate the graphics view. This is extremely slow and not recommended. Actually, using QWidget is not recommended. What is recommended? -gabriel ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
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 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
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On 6 May 2011 14:16, Cornelius Hald h...@icandy.de wrote: 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? AFAIR this is basically what Components implementations do, yes. Qt Mobility has an API for this. Take a look at QOrientationSensor -- Robin Burchell http://rburchell.com ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
Hi, You can use QtMobility::QOrientation sensor. Example code there: http://cdumez.blogspot.com/2010/12/screen-orientation-detection-for-qml.html Kr, Chris. -Original Message- From: meego-dev-boun...@meego.com [mailto:meego-dev-boun...@meego.com] On Behalf Of Cornelius Hald Sent: Friday, May 06, 2011 4:17 PM To: Thiago Macieira Cc: meego-dev@meego.com Subject: Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ? 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? Then I'm sorry, there's no good rotation practice within Qt. You need help from the window manager / compositor and mcompositor won't do that for you. The only way to do this from inside the application is to do it manually by placing the widget inside a QGraphicsProxyWidget and then rotate the graphics view. This is extremely slow and not recommended. Actually, using QWidget is not recommended. 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? Thanks for bearing with me. Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines - Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 2011-05-06 at 15:21 +0200, Thiago Macieira wrote: 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. Alright. I'll look into this over the weekend. Let's see how I can do that in a way compatible with Maemo5 and Symbian. Thanks Thiago, Robin and Christophe! Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On May 6, 2011, at 6:36 AM, Cornelius Hald wrote: On Fri, 2011-05-06 at 15:21 +0200, Thiago Macieira wrote: 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. Alright. I'll look into this over the weekend. Let's see how I can do that in a way compatible with Maemo5 and Symbian. Quick reminder that meego-dev is for questions about development of the MeeGo distribution, not application development. Application development questions should be in meego-sdk, which is where the people working on the sdk, apis and other application development participate. Please post future application development questions to meego-sdk. Also see: http://wiki.meego.com/Community_communication http://wiki.meego.com/Mailing_list_guidelines Regards, Dawn ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 2011-05-06 at 07:20 -0700, Foster, Dawn M wrote: Quick reminder that meego-dev is for questions about development of the MeeGo distribution, not application development. Application development questions should be in meego-sdk, which is where the people working on the sdk, apis and other application development participate. Please post future application development questions to meego-sdk. Ah sorry. I thought meego-sdk is for the development of the SDK... I think I made that mistake before. Somehow the name is not very intuitive :) Anyways, thanks for the reminder. Conny ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
Re: [MeeGo-dev] Howto lock screen orientation in MeeGo/Tablet 1.2 ?
On Fri, 2011-05-06 at 16:31 +0200, Cornelius Hald wrote: On Fri, 2011-05-06 at 07:20 -0700, Foster, Dawn M wrote: Quick reminder that meego-dev is for questions about development of the MeeGo distribution, not application development. Application development questions should be in meego-sdk, which is where the people working on the sdk, apis and other application development participate. Please post future application development questions to meego-sdk. Ah sorry. I thought meego-sdk is for the development of the SDK... I think I made that mistake before. Somehow the name is not very intuitive :) I have to agree with Conny. Maybe a rename to meego-app would make more sense... Randy ___ MeeGo-dev mailing list MeeGo-dev@meego.com http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines