Found simpler way to create custom widget. All it required was
a promotion of the subclassed QSlider.