Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top