How to customize the Qt:BDiagPattern(widen the lines)
-
Hi All,
I need implement the style as below link(please ignore the text), but Qt:BDiagPattern can not reach my requirements. Does anyone know how to implement this?
http://i43.tinypic.com/se4ob8.png
Thanks in advance,
Songtao -
Hi and welcome to devnet,
IIRC you have to set the pen color and width of painter before applying the pattern and you should be good
Hope it helps
-
Hi SGaist,
Thanks for your reply. Unfortunately, it does NOT work. From my current investiagtion, the pattern is not related to Qpen, but related to QBrush.
Do you have any idea on it?
Thanks a lot,
Songtao -
Indeed, I've mixed up two things from memory, sorry.
What you can do however is create a texture that contains the pattern looking like you want and then use it with the brush