Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rectangle in QML that is transparent, except for the borders

Tags:

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

like image 794
Troels Folke Avatar asked Sep 28 '13 15:09

Troels Folke


1 Answers

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" } 
like image 199
gbdivers Avatar answered Oct 11 '22 13:10

gbdivers