OGS
|
A QGraphicsTextItem that will ignore all geometric transformations.
A QGraphicsTextItem that will ignore all geometric transformations to the underlying QGraphicsView/QGraphicsScene (in particular, it will not be scaled).
Definition at line 24 of file QNonScalableGraphicsTextItem.h.
#include <QNonScalableGraphicsTextItem.h>
Public Member Functions | |
QNonScalableGraphicsTextItem (QGraphicsItem *parent=nullptr) | |
Constructor using a QGraphicsTextItem. | |
QNonScalableGraphicsTextItem (const QString &text, QGraphicsItem *parent=nullptr) | |
Constructor using a QString. | |
~QNonScalableGraphicsTextItem () override | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
Paints the text item. | |
QRectF | boundingRect () const override |
Returns the bounding rectangle of the text item. | |
|
explicit |
Constructor using a QGraphicsTextItem.
Definition at line 20 of file QNonScalableGraphicsTextItem.cpp.
|
explicit |
Constructor using a QString.
Definition at line 30 of file QNonScalableGraphicsTextItem.cpp.
|
overridedefault |
|
override |
Returns the bounding rectangle of the text item.
Definition at line 57 of file QNonScalableGraphicsTextItem.cpp.
Referenced by StratScene::StratScene(), paint(), and DiagramScene::update().
|
override |
Paints the text item.
Definition at line 46 of file QNonScalableGraphicsTextItem.cpp.
References boundingRect().