Hello, can you do me a favor?
Platform: Qtopia 4.3.2
question: paint a widget outside paintEvent() or paint()
problem detail:
I had implemented a custom list view(Inherits QListView), of course , a item delegate to paint each item the list view has.
now, when the text of the focus index has exceeded the text rectangle, I should scroll the text.
my thought is using a timer to scroll text, 2 or 3 characters every time the time-out event happen, but how can i paint the widget now?
the item delegate just can be paint inside paint(), and delegate->paint() just can be called from list view's paintEvent(). that is the real problem. ~_~
may be i can ask Qt to repaint it by using update() or repaint(). But how can i pass a flag or parameter to paintEvent() that I just want to scroll text, not paint a entireness widget.
^_^, Any one have the good solution for this? thank you very much.
Bookmarks