4 Star 36 Fork 14

ITVENTI科技/WorkXP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bezierelement.h 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
huanglingzhi 提交于 2020-06-29 18:07 +08:00 . Let's roll
#ifndef BEZIERELEMENT_H
#define BEZIERELEMENT_H
#include "lineelement.h"
class BezierElement : public LineElement
{
Q_OBJECT
QPen m_pen;
enum { Type = QGraphicsItem::UserType + GRAPHICSITEM_TYPE_BEZIER};
public:
int type() const override
{
// Enable the use of qgraphicsitem_cast with this item.
return Type;
}
public:
BezierElement(
BaseElement *parent,
BaseSpace * space,
QRectF initRect = QRectF(0,0,100,100)
);
protected:
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget *widget=nullptr) Q_DECL_OVERRIDE;
BasePicker *createPicker() Q_DECL_OVERRIDE;
};
#endif // BEZIERELEMENT_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/itventi/workxp.git
git@gitee.com:itventi/workxp.git
itventi
workxp
WorkXP
master

搜索帮助