Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    ScreenOrientationAuto not working on N950 meego device

    Mobile and Embedded
    2
    8
    2755
    Loading More Posts
    • 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
      DanSiddiqui last edited by

      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 Reply Quote 0
      • Alicemirror
        Alicemirror last edited by

        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 Reply Quote 0
        • D
          DanSiddiqui last edited by

          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 Reply Quote 0
          • Alicemirror
            Alicemirror last edited by

            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 Reply Quote 0
            • D
              DanSiddiqui last edited by

              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 Reply Quote 0
              • Alicemirror
                Alicemirror last edited by

                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 Reply Quote 0
                • D
                  DanSiddiqui last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • Alicemirror
                    Alicemirror last edited by

                    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 Reply Quote 0
                    • First post
                      Last post