annotation.h
来自「用qt做的城市电子地图」· C头文件 代码 · 共 27 行
H
27 行
#ifndef ANNOTATION_H#define ANNOTATION_H#include <QGraphicsItem>class Annotation : public QGraphicsItem{public: Annotation(const QString &text, bool major = false); void setText(const QString &text); QString text() const; QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);private: QFont font; QString str; bool major; double threshold; int y;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?