Here's an update:
http://www.qtcentre.org/wiki/index.p...ultiple_colors)
Now you can also set an icon.
Since my time today is limited, I turned it into an example. The example can use some improvements too.
Here's an update:
http://www.qtcentre.org/wiki/index.p...ultiple_colors)
Now you can also set an icon.
Since my time today is limited, I turned it into an example. The example can use some improvements too.
Thank you, tbscope, for spending so much time to write wiki articles! Just two small notes for further improvements: Creating a QTextDocument in each paint event is too heave. Better store a private pointer. Further, there is no need to create a pixmap and paint it, you can directly use the painter: QTextDocument::drawContents().
I just remember, that wysota also have a rich text button in his wwWidgets: http://www.wysota.eu.org/wwwidgets/d...extbutton.html.
Bookmarks