I add a Qpixmap and a string into QgraphicScene and then setScene into QgraphicView. This Qpixmap and string stay in the middle of the QgRaphicScene. How can i change the position of these? Can i use layout manager for this?
Asked
Active
Viewed 348 times
1 Answers
0
You can use the QGraphicsItem::setPos
function to set the position of an item.

thuga
- 12,601
- 42
- 52
-
Can i use layout manager inside a QGraphicsene? it's better to use absolute positioning right? – Anthony Tran Aug 18 '14 at 08:49
-
@user2534154 This depends of what you want to do. You can use one of [`QGraphicsLayout`](http://qt-project.org/doc/qt-5/QGraphicsLayout.html)s subclasses to set a layout in your scene. Whichever fits your needs. – thuga Aug 18 '14 at 09:05