March 21, 2011

MamdouhAlShamy MamdouhAlSha..
Lab Rat
31 posts

Position QGraphicsItem



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

1 reply

March 21, 2011

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1274 posts

  1. 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

  ‹‹ QPixmap load from raw RGB data (from libvlc)      Add a really huge widget to a QScrollArea ››

You must log in to post a reply. Not a member yet? Register here!