rosewater
rosewater

Reputation: 624

QListView scrollbars are not showing or showing as black

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

enter image description here

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

Answers (1)

rosewater
rosewater

Reputation: 624

I found out my problem, I had eventFilter on the listview consuming all the events.

Upvotes: 1

Related Questions