You don't have to clear the label. Qt will auto-erase its contents before every paint event.
You don't have to clear the label. Qt will auto-erase its contents before every paint event.
I am sending you the image Please check it.
Initially it display correct but after clicking few times some default color comes.
How can I solve this?
Thanks for Reply.
Last edited by sosanjay; 16th December 2009 at 10:12.
Please provide a minimal compilable example reproducing the problem.
Hi wysota,
I am sending you the sample code of drawline. Please check it I am trying lot to solve but I did not get the error.
I am using clear(); clearMask(); for clearing the label but unwanted lines comes.
In sample code there is four push button and according to button line will be drawn.
Initially it display according to the code but when I press rapidly 40-50 times then unwanted line comes.
Thanks in advance.
Fill the pixmap with transparency (or whatever other colour you want) before you start drawing on it.
Qt Code:
pix.fill(Qt::transparent);To copy to clipboard, switch view to plain text mode
sosanjay (29th December 2009)
Bookmarks