I'd say the code should be:
Qt Code:
{ scene->addItem(ball); // adds new item to the scene, not to the GraphicsItem("cannon") ball->setPos(x,x); }To copy to clipboard, switch view to plain text mode
I'd say the code should be:
Qt Code:
{ scene->addItem(ball); // adds new item to the scene, not to the GraphicsItem("cannon") ball->setPos(x,x); }To copy to clipboard, switch view to plain text mode
Bookmarks