superwave
23rd June 2011, 22:34
I have read the code of Vector Deformation:
http://www.qtcentre.org/attachment.php?attachmentid=6604&d=1308864257
This example magnifies the words in the widget using
path.setElementPositionAt(i,
x + flip * dx * len / m_radius,
y + flip * dy * len / m_radius);
Right now, what I want to do is: magnify the whole content under the magnifer but not just the words:
I have drawn the linkages and nodes using OpenGL in the QGLWidget:
http://www.qtcentre.org/attachment.php?attachmentid=6605&d=1308864651
What I want to do is: magnify the linkages and nodes under the magnifier. However, this seems not as easy as the example Vector Deformation.
So, I want to get some suggestions from you.
Thanks a lot.
http://www.qtcentre.org/attachment.php?attachmentid=6604&d=1308864257
This example magnifies the words in the widget using
path.setElementPositionAt(i,
x + flip * dx * len / m_radius,
y + flip * dy * len / m_radius);
Right now, what I want to do is: magnify the whole content under the magnifer but not just the words:
I have drawn the linkages and nodes using OpenGL in the QGLWidget:
http://www.qtcentre.org/attachment.php?attachmentid=6605&d=1308864651
What I want to do is: magnify the linkages and nodes under the magnifier. However, this seems not as easy as the example Vector Deformation.
So, I want to get some suggestions from you.
Thanks a lot.