Results 1 to 3 of 3

Thread: Screen Rotation - qt embedded 4.5

  1. #1
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    3
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Screen Rotation - qt embedded 4.5

    Hi all,

    I'm a beginner in Qt so I would like to ask you advices on how to rotate the screen in qt embedded 4.5.


    I'm using the Linux framebuffer driver and on reading this doc

    http://doc.trolltech.com/4.5/qt-embe...anagement.html

    I understand that rotation is only avaiable for Transformed driver.


    I try to do rotation via sw. I noticed that in doc

    http://doc.trolltech.com/4.5/qscreen.html

    there is the definition of the static function

    void QWSDisplay::setTransformation ( int transformation, int screenNo = -1 )

    but when I call it in main function,


    Qt Code:
    1. QWSDisplay::setTransformation(QTransformedScreen::Rot90, 0);
    To copy to clipboard, switch view to plain text mode 


    I obtain the error

    error: incomplete type 'QWSDisplay' used in nested name specifier.


    Could you give me some suggestions?

    Thanks in advance

    Beppe

  2. #2
    Join Date
    Feb 2009
    Posts
    33
    Thanks
    6
    Thanked 7 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Screen Rotation - qt embedded 4.5

    That error generally means the class is not fully defined, which means you need to include the correct header before you use it.

    -andy.f

  3. #3
    Join Date
    Apr 2009
    Posts
    18
    Thanks
    3
    Thanked 2 Times in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Screen Rotation - qt embedded 4.5

    Thanks andy.

    At the end I found the solution.

    I recompiled qt-embedded with the option

    -qt-gfx-transformed

    and when I launch the application I use the command

    ./myapp -qws -display transformed:Rot90

  4. The following 2 users say thank you to Beppe for this useful post:

    Charvi (23rd June 2012), cookie1909 (23rd July 2009)

Similar Threads

  1. QT embedded and HID mouse, can i?
    By webquinty in forum Qt for Embedded and Mobile
    Replies: 6
    Last Post: 5th September 2008, 16:37
  2. Touch screen and QT embedded, some doubts
    By webquinty in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th June 2008, 11:59
  3. Setting manually cursor position on multi screen systems
    By irreriwan in forum Qt Programming
    Replies: 0
    Last Post: 4th March 2008, 10:47
  4. QVFB: Screen rotation
    By alexandr in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 2nd February 2007, 16:41
  5. Qtopia, Zaurus (SL-C1000) & Screen Rotation
    By alexandr in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 22nd January 2007, 13:13

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.