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,
Code:
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
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
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