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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 4.6.3
    • Fix Version/s: None
    • Component/s: GUI: Printing
    • Labels:
      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

              Assignee:
              Unassigned Unassigned
              Reporter:
              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