Reputation: 2695
There is a big tree. Its items are std::string
including text colors indexes after null symbols.
For example
'\0'0Red Text'\0'1 Green Text'\0'0 Red Text'\0'2 Blue Text
I need to paint text it QTreeWidget items with several colors in an each item. There is very desirable to don't recreate items every time when the tree updates.
Upvotes: 1
Views: 490
Reputation: 2695
https://stackoverflow.com/a/1956781/1034253
This is works but I am afraid that tags adding may require much time.
Upvotes: 1