- Qt 5.15
- Qt QML
- C++ Classes
- QQmlEngine
- Qt 5.15.18 Reference Documentation

# Obsolete Members for QQmlEngine

The following members of class QQmlEngine are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Related Non-Members

`(obsolete)` int | qmlRegisterType()

## Related Non-Members

### template <typename T> int qmlRegisterType()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

Do not use this function. For anonymous type registrations, use qmlRegisterAnonymousType(), and make sure to provide a URI and a major version.