Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
4.7.0
-
None
Description
I'm using Qt 4.7, and got a strange behaviour of QPainter.rotate function on Symbian^3 (Nokia N8, C7-00, etc). In my program I use QGraphicsView, QGraphicsScene and a subclass of QGraphicsPixmapItem, in which I define a QString field, and redefine the paint method as follows:
void Sticker::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
QGraphicsPixmapItem::paint(painter, option, widget); // let Qt draw pixmap
//Drawing black text rotated 15 degrees with bold Tahoma font:
painter->rotate(15); // rotate 15 degrees
painter->setFont(QFont("Tahoma", 6, 1, true)); // set font
painter->setPen(QColor("black")); // set color
painter->drawText(10, 10, 100, 100, Qt::TextWordWrap, aText); // and draw text
}
On Symbian S50 (tested on Nokia 5800) I get a good rotated text painted withing specified rotated rectangle over my pixmap item. But on Symbian^3 I get a not rotated text started at point(0,0) withing a rotated rectangle.