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.htmlSame 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.
-
-
-
@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.htmlvisible 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.
-