I want to move an QGraphicsItem gi in a scene being displayed. I use
scene->removeItem(gi);
gi->setPos(x, y);
scene->addItem(gi);
scene->removeItem(gi);
gi->setPos(x, y);
scene->addItem(gi);
To copy to clipboard, switch view to plain text mode
At that point I get a warning
QObject::startTimer: QTimer can only be used with threads started with QThread
To copy to clipboard, switch view to plain text mode
and the view doesn't change. The warning totally foxes me. I have several threads in my program but gdb confirms all the basic GUI thread is active at this point. I don't want a timer, I want the view updated.
What is going on?
At first I had no removeItem addItem calls but that was gave the same warning.
Thanks for any suggestions,
Enno
Bookmarks