[Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit
Nuno Santos
nuno.santos at imaginando.pt
Thu Dec 15 13:45:01 CET 2022
Ulf,
I found the culprit. I was indeed doing a duplicated import of my qml.cmake file, which was adding each qml twice to the compilation.
Thanks for the heads up.
Best regards,
Nuno
> On 15 Dec 2022, at 12:21, Ulf Hermann via Interest <interest at qt-project.org> wrote:
>
>> list(APPEND QML_FILES
>> resources/qml/Browser.qml
>> resources/qml/BrowserBank.qml
>> resources/qml/BrowserButton.qml
>> …
>
> Are there more files called "Browser.qml" in the same module? That doesn't work. Your QML components need unique names.
>
> Or is there some qt_target_qml_sources() or similar, repeating the same QML files?
>
> In general, I think we need a bug report with a complete example.
>
> best regards,
> Ulf
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
More information about the Interest
mailing list