Nmaster88
Nmaster88

Reputation: 1605

Detect that the scrollbar of tableview is on and off in qml

Is it possible to detect that the vertical scrollbar is visible?

I want to know that so that for different resolution i can change the columns width.

What is happening now is if i have the vertical scrollbar: enter image description here

If the scrollbar is not on:

enter image description here

The element i want to check the vertical scrollbar is a TableView{ }

Upvotes: 2

Views: 1501

Answers (1)

Nmaster88
Nmaster88

Reputation: 1605

I solved this problem with a property that is inherited in TableViewfrom the ScrollView.

The property was the following tableId.__verticalScrollBar.visible, with this i can get when the scroll is and isnt visible.

Upvotes: 1

Related Questions