Reputation: 624
I cannot figure out why my QListView widget is not showing scrollbars, or sometimes shows them as black. I cannot scroll, not even with up/down keys.
This is what it looks like
This is the ui portion of the widget
<widget class="FileListView" name="listView">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
The autoscroll property in the designer is checked and VerticalScrollBarPolicy/HorizontalScrollBarPolicy are set to ScrollBarAsNeeded
Has any one seem similar problem?
Upvotes: 1
Views: 291
Reputation: 624
I found out my problem, I had eventFilter on the listview consuming all the events.
Upvotes: 1