maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [need help] QML N900 tips (https://talk.maemo.org/showthread.php?t=80135)

erendorn 2011-11-19 15:25

[need help] QML N900 tips
 
I doing a random app to learn QML, and I'm struggling a bit. So here are some questions, if there are easy answers, feel free to give some ;)

I would like the app to work on Fremantle and Harmattan..
1) Are there best practices for that?
2) Are com.nokia.meego 1.0 availlable for Fremantle? for Meego CE? for Linux desktop?
3) If I need to use different UI for different platforms, how do I include target specific code in my project?
4) I want to rearrange some of my QML items when orientation changes, how do I detect the change, and how do I rearrange them? Can I just set new values for their anchors?
5) Where should I ask these questions in general? :)

Thanks in advance!

nicolai 2011-11-19 15:46

Re: [need help] QML N900 tips
 
Quote:

Originally Posted by erendorn (Post 1125944)
I doing a random app to learn QML, and I'm struggling a bit. So here are some questions, if there are easy answers, feel free to give some ;)

I would like the app to work on Fremantle and Harmattan..
1) Are there best practices for that?
CE? for Linux desktop?
3) If I need to use different UI for different platforms, how do I include target specific code in my project?

I followed the example from sensorgallery

It uses different qml-resource files for harmattan and symbian,
take look at the sensorgallery.pro file as well.

Quote:

Originally Posted by erendorn (Post 1125944)
2) Are com.nokia.meego 1.0 availlable for Fremantle? for Meego

There is a port of qt-components for fremantle

Quote:

Originally Posted by erendorn (Post 1125944)
4) I want to rearrange some of my QML items when orientation changes, how do I detect the change, and how do I rearrange them? Can I just set new values for their anchors?

There are many ways to detect device orientation
QML DisplayInfo
or QML Page component
5) Where should I ask these questions in general? :)

Thanks in advance![/QUOTE]

erendorn 2011-11-19 19:31

Re: [need help] QML N900 tips
 
Who thanks, sensorgallery compiles and run on qemu, and it rotates.
Never tried qemu before, and now I know why I want a faster processor :/

Edit:
Can I have Qt quick on QEMU? it doesn't really matter as I have a real N900 though..


All times are GMT. The time now is 08:16.

vBulletin® Version 3.8.8