void QML Basic Type | Qt QML 6.4.1

- Qt 6.4
- Qt QML
- QML Types
- void
- Qt 6.4.1 Reference Documentation

# void QML Basic Type

The empty value type. More...

The `void` type is exclusively used to type-annotate JavaScript functions returning `undefined`. For example:

     function doThings() : void { console.log("hello") }

This is to help tooling analyze calls to such functions and compile them and their callers to C++.

You cannot declare `void` properties in QML.

See also QML Value Types.