×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    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, http://qt-project.org/forums/viewthread/9878

    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...

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,019

    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 :

    http://www.developer.nokia.com/Commu...d-N9-qt-Widget

  3. #3
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    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 Originally Posted by vineet.jain View Post
    That is something not supported/unavailbale with UI's based on widget for Meego 1.2. At-least if to believe this thread :

    http://www.developer.nokia.com/Commu...d-N9-qt-Widget

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,019

    Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode

    Quote Originally Posted by rhythmkay View Post
    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??????
    You should consider sharing the solution here, may in the form of wiki article .

    With regards to qml element, did you mean this : http://doc.qt.digia.com/qt/qtbinding.html (you can search this website to get all the relevant reference you need)

  5. #5
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    Re: N9, Qt C++ app (not QML,QtQuick!), screen orientation is locked to landscape mode

    The solution to the problem is there:
    http://www.developer.nokia.com/Commu...an-orientation

    or you can download the example codes here
    https://gitorious.org/harmattanwidge...y/trees/master

    Thanks all...

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,019

    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. But it doesn't change orientation of content inside window so it doesn't affect window rendering.'

    Other then the comments from QA team from Nokia store after it fails at their end.

Similar Threads

  1. Wrong screen orientation mode for QML app
    By shaii in forum Nokia N9
    Replies: 4
    Last Post: 2012-10-29, 21:08
  2. Replies: 1
    Last Post: 2011-10-27, 03:34
  3. Replies: 2
    Last Post: 2010-11-26, 09:04
  4. Replies: 16
    Last Post: 2009-04-13, 11:31
  5. Screen Mode from portrait to landscape
    By rami75lu in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-10-15, 04:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×