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

It looks that text is much bigger when in print preview.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.6.3
    • GUI: Printing
    • None

    Description

      when I print preview the QGraphicsItem object, it looks that text is bigger. But print the QGraphicsItem object, the text is normal;
      Code:
      void CTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
      {
      painter->save();
      painter->setPen(m_fontColor);
      painter->setFont(m_font)
      painter->drawText(Geometry(), Qt::AlignCenter , m_strText);
      painter->restore();
      }

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              jasanye jasanye
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes