PDA

View Full Version : How to draw triangle points in QtChart?



momo
15th November 2017, 04:05
Hello everyone,

I want to draw some points with triangle symbol, but the marker shape only support circle and rectangle shape.
I can create a triangle shape as QImage and send it to the QBrush of QScatterSeries, but if I want to draw I border, I still can only draw a circular or rectangular border.
Is there anyway I can draw a triangle point with triangle border?
12667

d_stranz
15th November 2017, 16:38
Is there anyway I can draw a triangle point with triangle border?

Add the border as part of your QImage.

momo
16th November 2017, 02:49
Thank you for your answering.
Maybe I didn't make it clear, I want to draw some triangles with border, and others without border.

momo
16th November 2017, 12:28
Add the border as part of your QImage.
I rewrited the source code of QtChart and now it works! Thank you all the same!