Results 1 to 7 of 7

Thread: Screen orientation

  1. #1
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Screen orientation

    Hello!

    I've got 320x240 3,5'' LCD with my ARM board. Board works with Linux and I'm using QT libs for my QT applications. I was wondering is there any simple way to change screen orientation for my QT apps? Should I change something in kernel or maybe in environment variables?

    thanks in advance
    best regards
    Tomasz

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Screen orientation

    It really depends on the device itself so it's impossible to answer this question on a general basis.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen orientation

    I can give more information about device, but I don't know what is important in this case.

    thanks in advance
    best regards
    Tomasz

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Screen orientation

    You should really start by looking into the reference manual of the device and its software to see what is actually supported. We can only make guesses here and the device vendor surely has a more complete knowledge of the device he produces.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen orientation

    OK. I'll check in reference more closely but the only thing I've found now is that there is tool in Qtopia named 'Rotation' and it changes screen rotation. Producer of a board says:

    Note: sometimes you need to reboot Qtopia to see the rotation. It is a Qtopia utility and we hasn’t
    made any change to it. In addition the rotation effect is implemented via Qtopia software and has
    nothing to do with LCD drivers.
    So I thought there is simple way to do it in QT.

    thanks in advance
    best regards
    Tomasz

  6. #6
    Join Date
    May 2009
    Posts
    55
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Screen orientation

    Compile qt for arm with : -qt-gfx-transformed and then run your app with ./app -qws -display transformed:Rot90 (or whatever rotation you need). Hope it helps.

  7. The following user says thank you to binaural for this useful post:

    Tomasz (31st August 2010)

  8. #7
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Screen orientation

    I'll try that.

    thanks
    best regards
    Tomasz

Similar Threads

  1. Change QTableView orientation
    By r2d2u2 in forum Qt Programming
    Replies: 2
    Last Post: 31st May 2010, 10:30
  2. QTabBar Text and Icon orientation
    By Gravis in forum Qt Programming
    Replies: 0
    Last Post: 16th December 2009, 08:55
  3. QLineEdit text orientation
    By emrares in forum Qt Programming
    Replies: 7
    Last Post: 15th September 2009, 06:25
  4. QWidget orientation
    By Valheru in forum Qt Programming
    Replies: 8
    Last Post: 19th August 2008, 17:20
  5. Vertical Orientation of Text.
    By ashukla in forum Qt Programming
    Replies: 9
    Last Post: 28th January 2008, 12:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.