Hi. > I've found the problem. The problem is that taht coordinate system > started at center of QGraphicsScene. > > Then my question is how to set coordinates system to start at top-left > corner?
Well, I've found the solution. It's QGraphicsView::setAlignment( Qt::AlignLeft | Qt::AlignTop ). But if I add only one item in the pos ( 10, 10 ) then view will show this item at pos ( 0, 0 ). How can I tell to QGraphicsView to not eat margins (offsets)? Thanks. > > Thanks. > >> Hi. >> >> I'm playing with QGraphicsScene and faced with the problem. >> >> I've added three items to the scene for the given postions. All is >> ok. But when I've resized window with view and scene the items have >> changed their absolute positions and justified with center of scene. >> Absolute positions have remained unchanged. And I want to not to >> change positions of items on resize window. >> >> How to solve this problem? >> >> Thanks. >> > > -- Best Regards, Igor Mironchik. _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
