Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Position QGraphicsItem



  • hi,

    i have a prblm
    how 2 position-verb- QGraphicsItem in a certain place inside QGraphicsScene ?

    i read in QGraphicsView, QGraphicsScene, QGraphicsItem Coordinate System
    and didnt get a clue

    any clue



  • @
    item->setPos(x,y);
    @

    should do the trick

    you could refer to some of the demos/examples that ship with Qt SDK for better understanding of QGraphicsView Framework


Log in to reply