You have to update the canvas, so from within the view you should call canvas()->update(). You can use Q3Canvas::setAllChanged() instead of invalidate() if setPen doesn't invalidate the item by itself.
You have to update the canvas, so from within the view you should call canvas()->update(). You can use Q3Canvas::setAllChanged() instead of invalidate() if setPen doesn't invalidate the item by itself.
I don't know why it is not colouring the item i clicked but colouring some other item on the canvas...Originally Posted by wysota
I would put the image here.. i hope this would help you to understand what exactly is happening.. i have pointed out the linei have clicked and u can see the line which it has coloured....
All you have to decide is what to do with the time that is given to you
Maybe you're mixing the coordinates somewhere? It looks like your horizontal and vertical coords are inverted -- (y,x) instead of (x,y).
Hi..Originally Posted by wysota
its not inverted... i have created them seperately, though it gives the look that ways as the symmetry is maintained... dont even know which part of the code would give you the idea of how to sort it out....
i am totally confused... would try it out in a different manner by giving it some break.. i hope it sorts out the things...
Thanks a lot for all the help and sample code you provided.. It really helped a lot...
take care...
with regards,
Kapil
All you have to decide is what to do with the time that is given to you
Try with a single line. If it works, add another and try again. Report coordinates of every click through qDebug or QMessageBox, etc.
Bookmarks