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. How come onVisibleChanged is undocumented?
Forum Updated to NodeBB v4.3 + New Features

How come onVisibleChanged is undocumented?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 773 Views 2 Watching
  • 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.
  • R Offline
    R Offline
    raulgd
    wrote on last edited by
    #1

    Hi,

    As I've been learning QML, I noticed there are many components that have slots that aren't documented anywhere, one example is that on a Rectangle, there is an onVisibleChanged event, but is never found anywhere in the Qt docs:
    https://doc.qt.io/qt-6/qml-qtquick-rectangle.html

    Same from all the components it inherits from, so I'm not sure, is that a deprecated event? or is just the Qt docs lacking on slots documentation?

    I've also noticed many components in the QML types having slots but that there is no slot section in the type, sometimes the slot is mentioned as a footnote on either the related signal or property, and sometimes even not mentioned at all.

    What would be the recommendation to be able to find all slots supported by a QML type? as it seems the Qt docs can be sometimes an unreliable source.

    Raul Guerrero
    http://jimi.mx

    jeremy_kJ 1 Reply Last reply
    0
    • R raulgd deleted this topic on
    • R raulgd restored this topic on
    • R raulgd

      Hi,

      As I've been learning QML, I noticed there are many components that have slots that aren't documented anywhere, one example is that on a Rectangle, there is an onVisibleChanged event, but is never found anywhere in the Qt docs:
      https://doc.qt.io/qt-6/qml-qtquick-rectangle.html

      Same from all the components it inherits from, so I'm not sure, is that a deprecated event? or is just the Qt docs lacking on slots documentation?

      I've also noticed many components in the QML types having slots but that there is no slot section in the type, sometimes the slot is mentioned as a footnote on either the related signal or property, and sometimes even not mentioned at all.

      What would be the recommendation to be able to find all slots supported by a QML type? as it seems the Qt docs can be sometimes an unreliable source.

      jeremy_kJ Offline
      jeremy_kJ Offline
      jeremy_k
      wrote on last edited by
      #2

      @raulgd said in How come onVisibleChanged is undocumented?:

      Hi,

      As I've been learning QML, I noticed there are many components that have slots that aren't documented anywhere, one example is that on a Rectangle, there is an onVisibleChanged event, but is never found anywhere in the Qt docs:
      https://doc.qt.io/qt-6/qml-qtquick-rectangle.html

      visible is a property of Item, not Rectangle.

      Same from all the components it inherits from, so I'm not sure, is that a deprecated event? or is just the Qt docs lacking on slots documentation?

      https://doc.qt.io/qt-6/qtqml-syntax-signals.html#property-change-signal-handlers

      A signal is automatically emitted when the value of a QML property changes. This type of signal is a property change signal and signal handlers for these signals are written in the form on<Property>Changed, where <Property> is the name of the property, with the first letter capitalized.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      1
      • R raulgd has marked this topic as solved on

      • Login

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