Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15808

Qt on Symbian^3 incorrectly handles QPainter.rotate() within subclass of QGraphicsPixmapItem (within overloaded "paint" event handler)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 4.7.0
    • GUI: Painting
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jhautaka Jani Hautakangas
            vlad2048 Vlad Shlyapnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes