ol: control subControl: NativeStyle.Slider.Groove // We normally cannot use a nine patch image for the // groove if we draw tickmarks (since then the scaling // would scale the tickmarks too). The groove might // also use a different background color before, and // after, the handle. useNinePatchImage: false } handle: NativeStyle.Slider { control: control subControl: NativeStyle.Slider.Handle x: control.leftPadding + (control.horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2) y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height)) useNinePatchImage: false } }