cost 102 ms
QGraphicsPolygonItem 出现问题并在移动后用鼠标拖动它们的角 - Problem with QGraphicsPolygonItem and drag their corners with mouse after move

我一直在使用 QGraphicsPolygonItem 开发 QT 应用程序。 首先,我创建了一个名为 DiagramScene 的 class,它继承了 QGraphicsScene。 首先,我创建项目并在多边形的每个点上放置红色角: putPointsOnItem function: 然后我检 ...

QGraphicsPixmapItem 未正确定位 - QGraphicsPixmapItem is not being positioned correctly

我需要通过位于图像左上角的圆圈移动QGraphicsPixmapItem 。 也就是说,当我用鼠标抓住圆圈时,我需要图像的左上角跟随圆圈。 我itemChange了QGraphicsEllipseItem并重新实现了itemChange方法,但是当我将图像的位置设置为该值时,图像没有被正确定位。 我 ...

如何在一个类中继承 QGraphicsRectItem 和 QGraphicsEllipseItem? - How can I subclass QGraphicsRectItem and QGraphicsEllipseItem in one class?

我正在使用 Pyside2 并且有一个使用 QGraphicsView 和 QGraphicsScene 的 UI。 现在我有两个独立的类,它们像这样子类化 QGraphicsEllipseItem 和 QGraphicsRectItem: 而不是在两个类中都有冗余方法,我想要一个可以是矩形或 ...

如何使 QGraphicsEllipseitem 的边框透明? - How can I make QGraphicsEllipseitem's border transparent?

我正在尝试使用 C++ 为核心和 Qt 为 GUI 开发黑白棋。 但是,我在用 QGraphics 绘制圆圈时遇到了一些麻烦。 我正在尝试使下面的图片中的圆圈透明,但边框没有变得透明。 是否有任何选项可以使 QGraphicsEllipseItem 的边框透明? ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM