QCustomPlot Discussion and Comments


Is there a way to set colours to text string in QCPItemText?

For example if text is "hello there" I would like to set "hello" to colour red and "there" to colour green. I tried embedding html tag into QString but it did not work.

BTW, great job on the library. It's very useful and I very much appreciate you sharing it.


I've tried to use html too. That would be very useful if QCPItemText can get html.

I wanted to add this recently but found out it's not as straight forward as I initially thought (through QTextDocument). So I've decided it's a feature that might come in QCP version 1.1.