N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode.
N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode.
I wonder how i could develop N9's application without using QML file .
I 've found some references from this, [url]http://qt-project.org/forums/viewthread/9878[/url]
when i create a new project as the follow steps:
File > New File or Project > Qt Widget Project > Mobile Qt Application > Choose.
at last it finish create the project, but when i deploy it to the N9 ,the screen orientation is locked to landscape mode.
Which is so ugly,I want to know how to create a application in N9 which doesnt use QML file as the UI, and makes it good.
Some application ,like filebox and so on ,which doesnt use QML file ,how could they do this???
Sorry for my poor english.
Regards...
Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode
That is something not supported/unavailbale with UI's based on widget for Meego 1.2. At-least if to believe this thread :
[url]http://www.developer.nokia.com/Community/Discussion/showthread.php?228694-get-rotation-information-on-N950and-N9-qt-Widget[/url][B][/B]
Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode
Thank you ,i got the solution now.
However i want to know how could write a qml element from c++ ,can you give me some references and examples??????[QUOTE=vineet.jain;907862]That is something not supported/unavailbale with UI's based on widget for Meego 1.2. At-least if to believe this thread :
[url]http://www.developer.nokia.com/Community/Discussion/showthread.php?228694-get-rotation-information-on-N950and-N9-qt-Widget[/url][B][/B][/QUOTE]
Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode
[QUOTE=rhythmkay;907868]Thank you ,i got the solution now.
However i want to know how could write a qml element from c++ ,can you give me some references and examples??????[/QUOTE]
You should consider sharing the solution here, may in the form of wiki article .
With regards to qml element, did you mean this : [url]http://doc.qt.digia.com/qt/qtbinding.html[/url] (you can search this website to get all the relevant reference you need)
Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode
The solution to the problem is there:
[url]http://www.developer.nokia.com/Community/Blogs/blog/aleksandr-trufanovs-forum-nokia-blog/2011/08/13/harmattan-orientation[/url]
or you can download the example codes here
[url]https://gitorious.org/harmattanwidgetproxy/harmattanwidgetproxy/trees/master[/url]
Thanks all...
Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode
But you can notice that the workaround as mentioned comes with a set of limitations/disadvantages. A note which i can read from the blog is :
'unfortunately it just tells the system that your window orientation is changed, so OS can manage it accordingly. [B]But it doesn't change orientation of content inside window[/B] so it doesn't affect window rendering.'
Other then the comments from QA team from Nokia store after it fails at their end.
Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode
After i saw this blog ,i konw that to completely solve this problem is probably impossible.The blog writer used rotation which is not suitable to N9's swipe gestures.
Then i find some other example codes,which use the qml file to wrap the c++ ui design.
I think this is a good method.But it has some disadvantages,such as it cant use QDialog.
Really, i was curious that how could some application like filebox or some games like angry birds on meego can be done very well without using qml file (even though use qml to wrap the c++ code),
I am confused very much.