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. ScreenOrientationAuto not working on N950 meego device
QtWS25 Last Chance

ScreenOrientationAuto not working on N950 meego device

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 3.1k Views
  • 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.
  • D Offline
    D Offline
    DanSiddiqui
    wrote on last edited by
    #1

    I develop an application using html5 project but Following code is not working on N950 device.

    @
    QApplication app(argc, argv);

    Html5ApplicationViewer viewer;
    viewer.setOrientation(Html5ApplicationViewer::ScreenOrientationAuto);
    viewer.showExpanded();
    viewer.loadFile(QLatin1String("html/index.html"));
    
    return app.exec();
    

    @

    1 Reply Last reply
    0
    • AlicemirrorA Offline
      AlicemirrorA Offline
      Alicemirror
      wrote on last edited by
      #2

      Hi I suppose that your previous post was solved ?

      I hav experienced that the ScreenOrientation mode in the main.cpp don't works good. Try to comment the line 4 of your code snippet and set the orientation type directly in the pages if you use QML components or try simply without it. As I know, the ScreenOrientationAuto is set by default when the application start.

      Note: on N950 devices the physical keyboard - if open - force the landscape orientation regardless of the settings you have in the application.

      Enrico Miglino (aka Alicemirror)
      Balearic Dynamics
      Islas Baleares, Ibiza (Spain)
      www.balearicdynamics.com

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DanSiddiqui
        wrote on last edited by
        #3

        I am not using QmlComponent, In my application i have html pages and i am developing application using html5 Qt template.

        1 Reply Last reply
        0
        • AlicemirrorA Offline
          AlicemirrorA Offline
          Alicemirror
          wrote on last edited by
          #4

          Sorry I thought to QML.

          What do you mean exactly that your code is not working ?

          Enrico Miglino (aka Alicemirror)
          Balearic Dynamics
          Islas Baleares, Ibiza (Spain)
          www.balearicdynamics.com

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DanSiddiqui
            wrote on last edited by
            #5

            code is working but orientation is not working and not changing view to potrait mode for this pupose i implemented it on .css file to rotate like this.
            @
            .MainTable{

                -webkit-transform: rotate(270deg);
                -moz-transform: rotate(270deg);
                -o-transform: rotate(270deg) ;
            

            }
            @

            1 Reply Last reply
            0
            • AlicemirrorA Offline
              AlicemirrorA Offline
              Alicemirror
              wrote on last edited by
              #6

              I think that ths maybe a bug. Reflecting on my parallel case in C++ / QML I see that anything I set in the main.cpp source code (like your settings) I get unrelieable results so I should force the orientation in the pages where it is needed.
              Thus in your case that without QML you shoud count on only the initial settings if they don't work this is the reason of your wrong result.
              With css set it works correctly ?

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DanSiddiqui
                wrote on last edited by
                #7

                it rotate my main table to 270 degree, looks ok.

                1 Reply Last reply
                0
                • AlicemirrorA Offline
                  AlicemirrorA Offline
                  Alicemirror
                  wrote on last edited by
                  #8

                  The origin of the problem maybe the same bug. Notify it with a bug report, please.

                  Enrico Miglino (aka Alicemirror)
                  Balearic Dynamics
                  Islas Baleares, Ibiza (Spain)
                  www.balearicdynamics.com

                  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