[Interest] How QtQuick for Qt 5.2+ handles opacity/visibility

Preet prismatic.project at gmail.com
Tue Nov 12 19:36:43 CET 2013


Hi,

In the interest of performance, if I have a Rectangle that I don't
want to be rendered when its completely transparent (but otherwise
want it to act like an Item -- assume it doesn't have any children) is
there any difference between the following?:

case 1:
Rectangle { height: 50; width: 50; color: "#00ABCDEF"; }

case 2:
Rectangle { height: 50; width: 50; color: "#FFFFFF"; opacity: 0; }


Is case 1 rendered at all?


Preet



More information about the Interest mailing list