Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved]Orientation in Harmattan

[Solved]Orientation in Harmattan

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZapB
    wrote on last edited by
    #1

    Hey all,

    has anybody figured out how to get decent screen orientation behaviour when using QML on Harmattan please? I am trying to write an app that responds to orientation changes and the usual QmlApplicationViewer code generated by creator is not behaving properly. The application is only ever displayed in landscape.

    I have found these bugs that are relevant:

    https://bugs.meego.com/show_bug.cgi?id=17200
    https://bugreports.qt.nokia.com/browse/QTBUG-19733

    However, the N950 ships with a number of QML apps which do seem to respond to orientation changes so it must be possible. Just wondered if anybody here has stumbled across the trick?

    Thanks in advance.

    Nokia Certified Qt Specialist
    Interested in hearing about Qt related work

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Hi,

      Alicemirror has encountered this bug too. He has made a solution for it. It's part of "qt-complex.":http://developer.qt.nokia.com/wiki/QtComplexGeometryTool

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • B Offline
        B Offline
        baysmith
        wrote on last edited by
        #3

        If you use the Window element, you can use the inPortrait property. See the "Orientation":https://qt.gitorious.org/qt-components/qt-components/blobs/master/examples/meego/QmlComponentGallery/qml/OrientationPage.qml page of the QML Component Gallery.

        Nokia Certified Qt Specialist.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #4

          Thanks guys! I'll try these solutions out tomorrow night.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            ZapB
            wrote on last edited by
            #5

            The Window element from Qt Components is working a treat. Now I just need to abstract this for various mobile device profiles and desktop.

            Nokia Certified Qt Specialist
            Interested in hearing about Qt related work

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved