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. QWidget based application in non-native orientation on embedded linux with fbdev platform

QWidget based application in non-native orientation on embedded linux with fbdev platform

Scheduled Pinned Locked Moved Solved Mobile and Embedded
framebufferqwidgetorientationlinux
5 Posts 2 Posters 4.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.
  • C Offline
    C Offline
    Chad Barbe
    wrote on 1 Jul 2015, 15:39 last edited by A Former User
    #1

    I have a Qwidget application running on embedded linux using the framebuffer platform. The display is a 480x272 color lcd panel. I would like to be able to (actually i NEED to be able to) make an application that displays its content with a vertical (portrait) orientation, ie 272 x 480.

    I tried the last suggestion posted here:

    http://forum.qt.io/topic/22852/qt-5-embedded-screen-rotation/13

    Which works as expected running on my development system but when I run it on my embedded target things are rotated as expected but all text is garbled. For example, the word Config shows up as Conifg. It doesn't make any sense that performing a rotation on a Graphics view could cause garbled text and only on a particular platform...

    So my question is this. What is the correct way to achieve rotating the entire UI into portrait mode on a non portrait screen? I would hope that the API to achieve this is independent of the platform I'm running on (ie something like QApplication::setorientation, which doesn't exist) but if it is not, is there a way to achieve it specifically for the framebuffer platform?

    THanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Jul 2015, 20:47 last edited by
      #2

      Hi,

      What about trying to rotate the frame buffer directly ? Here you can find some information.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply 2 Jul 2015, 13:39
      0
      • S SGaist
        1 Jul 2015, 20:47

        Hi,

        What about trying to rotate the frame buffer directly ? Here you can find some information.

        Hope it helps

        C Offline
        C Offline
        Chad Barbe
        wrote on 2 Jul 2015, 13:39 last edited by
        #3

        @SGaist I will look into rotating the framebuffer directly but I am under the impression that most drivers that implement the framebuffer interface don't actually support rotation. I'm basing this impression on hearsay so I will do a little more research myself.

        Meanwhile... is this really my only option?

        C 1 Reply Last reply 2 Jul 2015, 19:36
        0
        • C Chad Barbe
          2 Jul 2015, 13:39

          @SGaist I will look into rotating the framebuffer directly but I am under the impression that most drivers that implement the framebuffer interface don't actually support rotation. I'm basing this impression on hearsay so I will do a little more research myself.

          Meanwhile... is this really my only option?

          C Offline
          C Offline
          Chad Barbe
          wrote on 2 Jul 2015, 19:36 last edited by Chad Barbe 7 Feb 2015, 19:36
          #4

          @Chad-Barbe The patch described here ended up providing me with exactly what i needed.

          http://borkedlabs.com/2015/06/01/qt5-linuxfb-rotation-for-lcds/

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Jul 2015, 20:38 last edited by
            #5

            He should have tried to submit it to code review

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            5/5

            2 Jul 2015, 20:38

            • Login

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