Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TabWidget - why using .opacity instead of .visible property?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cezary Tomczak
    wrote on last edited by
    #1

    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.

    Cheers,
    Boo Boo

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbrasser
      wrote on last edited by
      #2

      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.

      Regards,
      Michael

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved