[solved] itemAt() in 5.3 depreciated ?
-
"docs 5.3":http://qt-project.org/doc/qt-5/qgraphicsscene-compat.html
@QGraphicsItem * QGraphicsScene::itemAt(const QPointF & position) const@
itemAt() is depreciated in 5.3
How to get @QGraphicsItem@
in
@mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)@
now ?
@Use the overload that takes a QTransform instead.@
I do not know/ understand how to use it in code.
thank you -
Its says "This function is deprecated and returns incorrect results if the scene contains items that ignore transformations. Use the overload that takes a QTransform instead." so the problem is QTransform the new function is
http://qt-project.org/doc/qt-5/qgraphicsscene.html#itemAt
@QGraphicsItem * QGraphicsScene::itemAt(const QPointF & position, const QTransform & deviceTransform) const@