As for painting, there is at least one implementation of the delegate that does that available on the forum. As for handling events, you have to do it yourself or bug Trolltech to make QTextControl class public![]()
As for painting, there is at least one implementation of the delegate that does that available on the forum. As for handling events, you have to do it yourself or bug Trolltech to make QTextControl class public![]()
I've checked the forums (QItemDelegate html), but I was unable to find anything besides the library that you built. I'd have to buy that, which wouldn't fly over so well with the bosses.
Do I just have to figure out all the special cases and handle them by myself? Is there some chart that exists that I can use as a cheat sheet for all the different states I might need to care about?
There is a very easy way to use more of QItemDelegate I've found.
Most of the functionality that I wanted was already broken up and just waiting for me to use it. They are the protected methods like drawBackground and drawFocus. I just called them and handled drawing everything else. It works exactly as I'd expect it to. I really should be checking out Qt Assistant more often and seeing all that Qt has already given me to work with.
Bookmarks