How to don't fitInView a QGraphicsItem
Hi,
in my app some QGraphicsItems are created when the user clicks on the scene, and my idea is to create it in the place the user's click.
But, the view moves and it's created on the center of the screen (if there are no other items), is ok for other items, but not specifically for those.
I was checking fitInViewand ensureVisible, but they do the opposite.
thanks!
Re: How to don't fitInView a QGraphicsItem
Hi,
If it's moving then , after each movement you need to re-set the positions of your existing items currently in the scene one by one. Have you ever tried it?
Re: How to don't fitInView a QGraphicsItem
mmmh... yep, it could be a solution; but if Qt has "ensureVisible" and "center()" and all of this stuff it should have something to disable those functions. Because my problem is not the position of my items, I think my problem comes because any automatic function of the view or a flag I'm not able to find or something like that.