Qt App rotation [solved]
-
Hey all,
I have a problem with the rotation off the app I'm building.
I am cross compiling the Qt App for the beagleboard xm, for the rotation I added to the .configure:
-qt-gfx-transformed
and to the App itself:
QWSDisplay::setTransformation(QTransformedScreen:: Rot90, 0);
but when I build I get the error:
error: incomplete type 'QWSDisplay' used in nested name specifier.
(the App without the rotation works fine:))
Can anyone help please?... -
Hi,
Did you forget to
@#include <QWSDisplay>@
before calling setTransformation ?
-
Are you doing the setTransformation and display transformed at the same time ?
-
I seemed to forget the '-' before the display... :/
But now when I launch the app i get:
transformd: driver not found
Aborted
I don't know what do you mean by at the same time.. I added the setTransformation to the app code and compiled it and with the result I launch the app with ./myapp -qws -display transformed:Rot90. -
IIRC its something like
@-qws -display "transformed:rot90:1"@
with the quotes
But I think that doing it in your code and on the command line might result in a screen rotated by 180°
-
Did you install your custom compiled Qt on the board ?
-
I mean, are the libraries on the board the same that you use to compile the application ?
-
Ok, then the Qt you are using might have not been built with the -gfx-transformed
-
Did you copy the resulting libs to your beagleboard ?
-
If you don't have size constraints you can copy the QtEmbedded-4.X.X folder to the same place on the board (you can trim it down later once you have your application up and running)
-
I'm sorry, I don't understand... I have the qt-everywhere-opensource-src-4.6.2 directory where I compiled the qmake. and all the outputs are located in an out directory I chose.
In the out directory are subdirectories:
bin demos examples include lib mkspecs plugins translations
and in bin there is the qmake Im using in the Qt creator.
what should I copy and where to? -
Copy the lib and plugins content on your target filesystem. Generally I let Qt install the files in the default location which is /usr/local/Trolltech/QtEmbedded-4.X.X so on the target I copy the files in the same dir.
-
Can I ask you another question about screen rotation?
I tried to rotate the screen with:
echo 1 > /sys/class/graphics/fbcon/rotate
and the frame buffer is rotating but when i launch the Qt app it doesn't rotate...
Do you know if it's possible to rotate it that way as well?.. :)Again, Thank you! :)