25

Is there a way in QML to create a Rectangle with opacity: 0 that still have visible borders? If not, any suggestions on how to work around it?

Thanks

Troels Folke
  • 917
  • 2
  • 9
  • 12

1 Answers1

50

No, opacity is applied for complete visual aspect of item (and opacity:0 makes item full invisible). If you want rectangle with borders and without background, use "transparent" as color.

Rectangle { border.color: "black"; color: "transparent" }
TheBootroo
  • 7,408
  • 2
  • 31
  • 43
gbdivers
  • 1,147
  • 9
  • 9