1

i created my custom style for ScrollView, but actually i don't know how to check what orientation of scroll is it (horizontal or vertical? I need use different image for each of them).

source code of scrollview style

In this source code, that i found, is used word horizontal, but where it comes from? I don't see any declaration of horizontal property.

Krab
  • 6,526
  • 6
  • 41
  • 78

1 Answers1

2

It comes from this line. In newer versions of Qt, properties for style components are exposed through the styleData object; this is now standard practice for all Qt Quick Controls styling. In the case of ScrollViewStyle, commit e0c8035c updated the code to use styleData instead.

Mitch
  • 23,716
  • 9
  • 83
  • 122