QPen: dashPattern to define a continuous line
I wonder what to do to define a continuous line using QPen::setDashPattern.
I tried (1,0) without success.
Is this feasible???
Thanks a lot!
Why use a dash pattern when you want a solid line? Just use QPen(Qt::SolidLine).
I agree. But in an API, I want to allow users to use setDashPattern. And I would like to be able to go back to a solid line. Hence, having a combination for this is useful.
It would avoid me to add another method like setSolid.