It might be plain c++ to you but i dont really study much of it cos all i was thought is those simple cin cout etc. this is the first time dealing with this so im here asking for help. but anyway, thanks for your replies.
It might be plain c++ to you but i dont really study much of it cos all i was thought is those simple cin cout etc. this is the first time dealing with this so im here asking for help. but anyway, thanks for your replies.
We can't assume here that you know nothing of programming when writing our replies, we have to assume you know how to program and you only have problems with using Qt. You need a decent knowledge of C++ to be able to use Qt efficiently. So far it seemed you didn't have problems with programming as such so it was safe to assume you just didn't notice you were using a local variable or that you didn't know it mattered.
im able to draw over the image now but how do i put it to keep refreshing and change its position ?? I was thinking of putting while loop at first but it will just keep looping the same thing. any idea?
Use QGraphicsItem::setPos() to modify the position of an item.
Bookmarks