Congratulations to our 2022 Qt Champions!

TabWidget - why using .opacity instead of .visible property?

  • See: examples/declarative/ui-components/tabwidget/TabWidget.qml

    Why is it showing/hiding elements using .opacity and not .visible? Is there some an undocumented performance issue or what? If both properties do the same, why use .opacity and make the confusion, using .visible would be more straightforward.

    I googled a lot but didn't find an answer.

    Boo Boo

  • Hi,

    It's probably just habit -- in our QML demos and examples we often fade things in and out, which is possible with opacity but not with visible.


Log in to reply