PDA

View Full Version : Screen Rotation - qt embedded 4.5



Beppe
16th April 2009, 16:04
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-embedded-displaymanagement.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,



QWSDisplay::setTransformation(QTransformedScreen:: Rot90, 0);


I obtain the error

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


Could you give me some suggestions?

Thanks in advance

Beppe

andy.fillebrown
16th April 2009, 20:52
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

Beppe
17th April 2009, 12:32
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