[][src]Function qt_qml::qml_type_id

pub unsafe fn qml_type_id(
    uri: *const c_char,
    version_major: c_int,
    version_minor: c_int,
    qml_name: *const c_char
) -> c_int
This is supported on cpp_lib_version="5.13.0" or cpp_lib_version="5.12.2" or cpp_lib_version="5.14.0" only.

Returns the QML type id of a type that was registered with the name qmlName in a particular uri and a version specified in versionMajor and versionMinor.

Calls C++ function: int qmlTypeId(const char* uri, int versionMajor, int versionMinor, const char* qmlName).

C++ documentation:

Returns the QML type id of a type that was registered with the name qmlName in a particular uri and a version specified in versionMajor and versionMinor.

This function returns the same value as the QML type registration functions such as qmlRegisterType() and qmlRegisterSingletonType().

If qmlName, uri and versionMajor match a registered type, but the specified minor version in versionMinor is higher, then the id of the type with the closest minor version is returned.

Returns -1 if no matching type was found or one of the given parameters was invalid.

This function was introduced in Qt 5.12.

See also qmlRegisterType() and qmlRegisterSingletonType().