importing QtQuick.Dialogs gives many ambiguous type warnings
-
When I import QtQuick.Dialogs in a project backed by cmake and Qt 6.8, I get all these warnings. Any ideas on how to avoid them? I only have one Dialogs import in one file.
.../source/Main.qml:1: warning: Ambiguous type detected. FolderDialog 6.0 is defined multiple times. [import] .../source/Main.qml:1: warning: Ambiguous type detected. ColorDialog 6.0 is defined multiple times. [import] .../source/Main.qml:1: warning: Ambiguous type detected. MessageDialog 6.0 is defined multiple times. [import] .../source/Main.qml:1: warning: Ambiguous type detected. FileDialog 6.0 is defined multiple times. [import] .../source/Main.qml:1: warning: Ambiguous type detected. FontDialog 6.0 is defined multiple times. [import] .../source/Main.qml:1: warning: Ambiguous type detected. FolderDialogDelegate 6.0 is defined multiple times. [import]
-
Some additional info or more like a warning. This crashes the qml language server and if the server is not running, every ctrl+click on your own qml files opens them from the build folder instead of the source folder. And then you basically edit a temp file.