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. rotate Qt application without scaling
Forum Updated to NodeBB v4.3 + New Features

rotate Qt application without scaling

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 1.5k 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.
  • R Offline
    R Offline
    ranshalit
    wrote on last edited by
    #1

    Hello,

    We plan to develop 2 different qt application for 2 different screen states:

    1. screen state of 320x240 (320 - horizontal)
    2. screen state of 240x320 (240 - horizontal)
      The screen knows only how to display images as 240x320 (and framebuffer is defined accordingly)

    I would like to ask if it is possible to develop Qt application in 320x240 and push it into framebuffer as rotated, as the framebuffer and screen controller expects: 240x320 .
    It should be retated without any scaling.

    Best Regards,
    Ran

    raven-worxR 1 Reply Last reply
    0
    • R ranshalit

      Hello,

      We plan to develop 2 different qt application for 2 different screen states:

      1. screen state of 320x240 (320 - horizontal)
      2. screen state of 240x320 (240 - horizontal)
        The screen knows only how to display images as 240x320 (and framebuffer is defined accordingly)

      I would like to ask if it is possible to develop Qt application in 320x240 and push it into framebuffer as rotated, as the framebuffer and screen controller expects: 240x320 .
      It should be retated without any scaling.

      Best Regards,
      Ran

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @ranshalit
      i think you should be more specific. What kind of device are you developing for. On what platform?

      From this point of view it should be enough to call setFixedSize() on your mainwindow?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ranshalit
        wrote on last edited by
        #3

        @raven-worx said:

        setFixedSize()

        Hi,

        I work on TI's DM8148 (omap/davinci family), which is connected to LCD 240x320
        We want to use the screen in 2 types . The basic type which already works is 240x320 (we name it "vertical state" ).
        But now we want to use it as 320x240 (we name it "horizontal state" ). I mean by that that the text for example will be

        for example: this is image I want to see in 320x240 :
        https://drive.google.com/file/d/0B22GsWueReZTT29UTjBPZXcxRkE/view?usp=sharing

        Unfortunately the HW does not support rotatation.
        Is there any option of rotation with Qt (I guess it will be some kind of software rotation) ?

        Regards,
        Ran

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          i am afraid there is no simple solution to your problem.
          For a Qt-only solution there is no way around using QPA (Qt Platform Abstraction)
          Which is mostly undocumented, so you would need to work yourself to the source code.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            In Qt4 you might have a chance: https://forum.qt.io/topic/30014/qt-app-rotation-solved
            In Qt5 this rotation option seems to be gone

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            R 1 Reply Last reply
            0
            • R Offline
              R Offline
              ranshalit
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • raven-worxR raven-worx

                In Qt4 you might have a chance: https://forum.qt.io/topic/30014/qt-app-rotation-solved
                In Qt5 this rotation option seems to be gone

                R Offline
                R Offline
                ranshalit
                wrote on last edited by
                #7

                @raven-worx said:

                In Qt4 you might have a chance: https://forum.qt.io/topic/30014/qt-app-rotation-solved
                In Qt5 this rotation option seems to be gone

                Hi raven,

                Assuming there is no rotate option....
                Is there a way to develop the Qt frame somehow in rotated view ?

                Thanks,
                Ran

                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