[Interest] Qml Linting Error - Warnings occurred while importing module "QtQuick.Controls":
Ulf Hermann
ulf.hermann at qt.io
Mon Dec 19 19:43:00 CET 2022
> Warning: QtQuick.Controls uses optional imports which are not supported.
> Some types might not be found.
This is not an error but a warning. Indeed the compiler will not compile
your code to C++ because it doesn't know which of the optional imports
(ie styles) will be active at run time. You can import one specific
style, for example QtQuick.Controls.Fusion instead of QtQuick.Controls.
Then the compiler will know what to expect, but you won't be able to use
a different style at run time anymore.
best regards,
Ulf
More information about the Interest
mailing list