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?
Forum Update on Monday, May 27th 2025

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 14 Nov 2010, 15:52 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 15 Nov 2010, 00:03 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

      1/2

      14 Nov 2010, 15:52

      • Login

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