绘制文本action
更多...
#include <DAGraphicsDrawTextItemSceneAction.h>
|
|
static QPixmap | svgToPixmap (const QString &svgPath, const QSize &size) |
| |
| static QPointF | topLeftPoint (const QPointF &p1, const QPointF &p2) |
| | 通过任意两个点,获取topleft点
|
| |
| static QPointF | bottomRightPoint (const QPointF &p1, const QPointF &p2) |
| | 通过任意两个点,获取bottomRight点
|
| |
| static QSizeF | pointRectSize (const QPointF &p1, const QPointF &p2) |
| | 通过任意两点,获取构成矩形的尺寸
|
| |
|
DAGraphicsScene * | mScene { nullptr } |
| |
|
QPixmap | mCursorPixmap |
| |
◆ beginActive()
| void DA::DAGraphicsDrawTextItemSceneAction::beginActive |
( |
| ) |
|
|
protectedvirtual |
◆ mouseMoveEvent()
| bool DA::DAGraphicsDrawTextItemSceneAction::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
◆ mousePressEvent()
| bool DA::DAGraphicsDrawTextItemSceneAction::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
| bool DA::DAGraphicsDrawTextItemSceneAction::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
该类的文档由以下文件生成:
- /home/runner/work/data-workbench/data-workbench/src/DAGraphicsView/DAGraphicsDrawTextItemSceneAction.h
- /home/runner/work/data-workbench/data-workbench/src/DAGraphicsView/DAGraphicsDrawTextItemSceneAction.cpp