Not able to set ProxyWidget Position (solved)
proxy has a method (setPos) but i can't seems to be able to move the proxyWidget.
''' WidgetCountdown *CountdownTest = new WidgetCountdown; QGraphicsProxyWidget *proxy = scene.addWidget(CountdownTest); proxy->setPos(0,0);
Where do you expect that position to be ?
I looked at the "colliding mouse example":http://doc.qt.nokia.com/4.7-snapshot/graphicsview-collidingmice.html that ships with Qt.
The mouse is place at random location using setPos Method
mouse->setPos(::sin((i * 6.28) / MouseCount) * 200, ::cos((i * 6.28) / MouseCount) * 200);
I expect proxy->setPos(0,0) to be top left side of the screen.
The coordinates mapping into scene confuse me...
You should update your documentation link. The from nokia time is a bit outdated to say the least.
The setPos call you are showing is just a way to position a mouse at random points on the scene
What are other ways of positioning, please comment.