[Qt-interest] Magnetized QGraphicsScene

Vincent PREVOST vincent.prevost.vp at gmail.com
Fri Nov 27 11:15:05 CET 2009


Hello.

I would like to have a magnetized scene on which I can put and move item
only on a spécific place, for instance the position of the item should be a
multiple of ten for both axes.

I have now two question. Is there a implented methode on the framework which
would place automaticaly the item. But more important. I need to display
points on the scenes which will be used as references. For now I use a self
made algorithms which uses a drawPoint method but as I code in Python, it's
not as efficient as if it would be if handled by Qt in a C language.
I try to set a background with a QBrush seted with Qt.Dense7Pattren. The
problem is that when I zoom, the point becomes bigger and doesn't stay a one
pixel point.

Is there a method in the Qt Framework which could manage the draw of the
points.

Thank you for your attention.

Vincent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091127/883f1186/attachment.html 


More information about the Qt-interest-old mailing list