myfifth
20th January 2011, 09:00
I've built my own QScrollArea-based widget, it will have or not have a scrollbar.
If it has a scrollbar, a content widget will be added and painting would be happened on content widget.
If it doesn't have a scrollbar, it would work as a simple frame widget.
However, I found that when there was no scrollbar, I can't paint anything on it in overridden paintEvent(). The paint event was received and some paintings was done, but no effect.
I'm wondering it's that QSrcollArea disabled painting by default.
I'm looking for someone could help me confirm it.
Thx.
If it has a scrollbar, a content widget will be added and painting would be happened on content widget.
If it doesn't have a scrollbar, it would work as a simple frame widget.
However, I found that when there was no scrollbar, I can't paint anything on it in overridden paintEvent(). The paint event was received and some paintings was done, but no effect.
I'm wondering it's that QSrcollArea disabled painting by default.
I'm looking for someone could help me confirm it.
Thx.