Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.6.3
-
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
- is required for
-
QTBUG-25378 QtPrintSupport - Font Issues
- Open