Hello All,

I have to port code from 4.8 using QtDesktop to 5.3. After compile and run I get an error:

StyleItem is not a type

This is the code:
Qt Code:
  1. import QtQuick 1.1
  2.  
  3. BaseSlider{
  4. id: slider
  5.  
  6. property alias tooltip: toolTip.text
  7.  
  8. groove: StyleItem {
  9. anchors.fill:parent
  10. elementType: "slider"
  11. sunken: pressed
  12. maximum: slider.maximumValue*100
  13. minimum: slider.minimumValue*100
  14. step: slider.stepSize*100
  15. value: slider.value*100
  16. horizontal: slider.orientation == Qt.Horizontal
  17. enabled: slider.enabled
  18. hasFocus: slider.focus
  19. }
  20.  
  21. // This is margins for the slider length. They should be equal around the half of the handle object width.
  22. leftMargin: 11
  23. rightMargin: 11
  24.  
  25. handle: handleImg
  26. hoverEnabled: false;
  27.  
  28.  
  29. Component {
  30. id: handleImg
  31.  
  32. Image {
  33. id: rect
  34.  
  35. property string enabledStateImgSrc : mouseArea.containsMouse ? "images/PlayerSliderBtns_Hover.png" : "images/PlayerSliderBtns_ActiveMC.png";
  36. source: enabled ? enabledStateImgSrc : "images/PlayerSliderBtn.png";
  37. MouseArea {
  38. id: mouseArea
  39.  
  40. hoverEnabled: true
  41. anchors.fill: parent
  42. onEntered: { showTimer.start(); }
  43. onExited: { toolTip.shown = false; showTimer.stop(); }
  44. }
  45. Timer {
  46. id: showTimer
  47.  
  48. interval: 600
  49. onTriggered: toolTip.shown = true;
  50. }
  51.  
  52. }
  53. }
  54. ToolTip{
  55. id: toolTip
  56.  
  57. offsetX: width/3
  58. offsetY: 1.5*height
  59. }
  60. valueIndicator: null
  61. }
To copy to clipboard, switch view to plain text mode 

Any suggestion what is missing here?
Thanks in advance
Markus