Could you provide a picture of what you want to achieve?
Could you provide a picture of what you want to achieve?
Very easy, what I want is simply a rubber band. The problem drawing it with setPen( Qt:ashLine ) is that you can only choose one colour, I want to choose the two colors: black & white.
You can draw white rectangle with a solid line and then a black one using dashed line.Originally Posted by SkripT
Have you seen QRubberBand?
One time more, thanks. I don't know what i was tinking of.... The solution is very easyYou can draw white rectangle with a solid line and then a black one using dashed line.![]()
Bookmarks