PDA

View Full Version : [qt4] QScrollArea corner widget?



sertrem
11th January 2006, 23:46
Is there any way to set a corner widget* in a qt4 QScrollArea?

With Qt3 it was a simple QScrollView::setCornerWidget(QWidget*), but looks like this functionality is lost in Qt4.

*at the bottom right corner, in that space both QScrollBar's left empty.

axeljaeger
12th January 2006, 11:04
Porting docs doesn't say anything about it. However, I also cannot find anything about it in the docs. If you want to do it on your own, you should use a subclass of either QAbstractScrollView or QScrollView, whatever is appropriate for your case. I think both use a QGridLayout. It should be easy to add a widget there if nothing important is hidden in private members. However, I'm now at work and don't have Qt here.

sertrem
12th January 2006, 22:42
As soon as I get 5 free minutes (maybe I'll need more) I'll try to implement a QScrollArea with that setCorner method... and post it here.

thanks!
ciao!