📄 target.h
字号:
#ifndef TARGET_H#define TARGET_H#include <QGraphicsItem>#include <QObject>class Target : public QObject, public QGraphicsItem{ Q_OBJECTpublic: Target(); QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);public: qreal course; qreal speed; short type; // surface, underwater, air short attribute; // friend, foe, unknown QColor color; protected: void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -