![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
QT
文章平均质量分 85
flag的小鱼塘
这个作者很懒,什么都没留下…
展开
-
QGraphicItem实现中心旋转
QGraphicItem实现中心旋转c++c++Tianyu-liu¥19.90订阅博主QGraphicItem实现中心旋转一、 解决思路1) 确定旋转中心坐标:centerPos;2) 在mousePressEvent(QMouseEvent *e)中e->pos()获得按下时的坐标:pressPos3) mouseMoveEvent(QMouseEvent *e)中e->pos()获得当前坐标:movePos;4) center...转载 2021-04-16 18:22:15 · 1720 阅读 · 0 评论 -
Qt5类之QLine and QLineF
Qt5类之QLine and QLineFQLine#include <QLine>介绍QLine表示平面上整数精度的二维向量,用于描述有限长度的直线也就是线段,起点与终点只具有整数精度。线段位置的起点与终点可由p1(),x1(),y1(),p2(),x2(),y2()得到,dx()与dy()返回线段的水平与垂直跨越长度。isNull()说明是否为无效线段。也可以使用translate()进行指定量的平移。成员函数...转载 2021-04-16 18:21:04 · 2424 阅读 · 0 评论