[Interest] what are the requirements for QMetaType::metaObjectForType(QMetaType::type("QQuickLayout*")) to work?

Ulf Hermann ulf.hermann at qt.io
Tue May 7 08:40:15 CEST 2024


> I don't think it works, adding `import QtQuick.Layouts 1.15` to qmldir 
> of that module produces an error  "import requires 2 arguments, but 2 
> were provided"

In Qt5 you couldn't specify the version, yet. Try with only:

import QtQuick.Layouts

best regards,
Ulf


More information about the Interest mailing list