[Qt-interest] Want to add Scroll Bar

John McClurkin jwm at nei.nih.gov
Tue May 12 13:49:36 CEST 2009


Sai Chandra wrote:
> 
> hi all,
>       In my application i want to add a scroll bar on my widget upon 
> which a grid is sitting. I tried using QScrollBar directly , but then if 
> I use scrollBar->setEnabled(true) in the constructor.. my application 
> was crashing. May I know a better way of enabling a scroll bar for a 
> widget ?

Try subclassing your widget from QAbstractScrollArea.



More information about the Qt-interest-old mailing list