PDA

View Full Version : QListWidget Scrollbar



WeeMan
9th March 2010, 02:56
Is there a way to use the default OS scroll bar while using a style sheet for a QListWidget? I'm also having another problem with auto scrolling. I have auto scroll ticked yet it doesn't do anything. Does anyone know a way to fix both of these problems?

WeeMan
11th March 2010, 21:47
Bumpppppppp

user_mail07
12th March 2010, 01:07
You need to find the viewPort() of widget and setAutoScroll() on that.

also there is another methods if yours items are not visible in the QListwidget:-

scrollToItem ( const QListWidgetItem * item, QAbstractItemView::ScrollHint hint = EnsureVisible ) [

zgulser
12th March 2010, 06:19
You may know but useful to say that in order to the scroll bar appears, you need to have adaquate number of items inside the list. Did you check that?

WeeMan
14th March 2010, 06:10
You need to find the viewPort() of widget and setAutoScroll() on that.

also there is another methods if yours items are not visible in the QListwidget:-

scrollToItem ( const QListWidgetItem * item, QAbstractItemView::ScrollHint hint = EnsureVisible ) [

I tried this before and it does not work.

@zgulser
The scroll bar does become visible when there are more than a certain amount of items.

WeeMan
15th March 2010, 21:31
Bumpppppppp

WeeMan
18th March 2010, 23:15
Bumpppppppp