Hi all, I want to draw a rectangle with qPainter alternating the colors black & white: The rectangle has to looks like if it was made with dashed lines. I think that the solution could be setting the correct brush for the pen used to draw the rectangle, but I have tried different combinations with no success. Anybody knows how to do it?. Thanks.


Reply With Quote

You know you only have to create once, one black and one white rectangle and then just draw them one after the other repeatidly.
ashLine ) is that you can only choose one colour, I want to choose the two colors: black & white.

Bookmarks