Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

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