Hello forum,

I am trying to render a qml slider on top of the translucent rectangle as follows:

Qt Code:
  1. Rectangle {
  2. id: rect
  3. width: parent.width/2; height: parent.height/5
  4. color: "red"
  5. radius: 10
  6. opacity: 0.1
  7. border.color: "black"
  8.  
  9.  
  10. Slider {
  11. id: outerTessellationSlider
  12. activeFocusOnPress: true
  13. minimumValue: 1.0
  14. maximumValue: 64.0
  15. stepSize: 1.0
  16. tickmarksEnabled: true
  17.  
  18. }
  19.  
  20. }
To copy to clipboard, switch view to plain text mode 

As you can see i have define quite a few properties for the slider, but none of them seems to be in effect. I have enabled the tick marks , but it is not visible. I have set the minimum and maximum value , but slider remains in the same size. What may be the reason behind this ?

Thanks