PDA

View Full Version : Qt 2.3.10 QPainter problem on arm



yagabey
7th October 2008, 12:29
Hello,
I compiled the "aclock example" of qt2.3.10 on ep9315 board with arm. There was no compilation error;but just an empty window appeared on the screen when i ran the the application.
The reason is that Qpainter's functions(translate, rotate..) does not function properly. Actually most of the examples does not function properly because of that..

For example:


QPainter paint( this );
paint.translate(200.0,200.0);
paint.drawLine(-90,-80,-90,-70);

this code shows nothing on the screen:but if i comment out second line, the line is drawn.

Same code works perfectly when compiled for desktop.

Note: The code also works on the same board when compiled with qt4.3.1

What may be problem and solution?
Thanks..