Cannot open this QML document because of an error in the QML file: Line 0: The Design Mode requires a valid Qt kit.
-
I’m trying to use the Design tab in Qt Creator, but I’m getting this error message. How can I fix this problem?

-
I’m trying to use the Design tab in Qt Creator, but I’m getting this error message. How can I fix this problem?

@FCTravassos said in Cannot open this QML document because of an error in the QML file: Line 0: The Design Mode requires a valid Qt kit.:
How can I fix this problem?
What do you think how it's fixed?
The answer is in the error message: You need to install/set a Qt Kit (Compiler + Qt Installation + other required tools)
Configure your kit, then you can use the editor -
But apparently I already have a valid version of Qt, as can be seen in the image.

-
But apparently I already have a valid version of Qt, as can be seen in the image.

@FCTravassos That's the Qt version. You should make a screenshot of the Kits page, with the details of the active kit.
-
But apparently I already have a valid version of Qt, as can be seen in the image.

Is the error message coming from QtCreator or Qt Design Studio ?
Because you seem to create a QML project and your Kit doesn't seem fully configured for this
-
@FCTravassos That's the Qt version. You should make a screenshot of the Kits page, with the details of the active kit.
@cristian-adam said in Cannot open this QML document because of an error in the QML file: Line 0: The Design Mode requires a valid Qt kit.:
@FCTravassos That's the Qt version. You should make a screenshot of the Kits page, with the details of the active kit.

@Pl45m4 said in Cannot open this QML document because of an error in the QML file: Line 0: The Design Mode requires a valid Qt kit.:
Is the error message coming from QtCreator or Qt Design Studio ?
Because you seem to create a QML project and your Kit doesn't seem fully configured for this
The message is coming from Qt Creator
-
@cristian-adam said in Cannot open this QML document because of an error in the QML file: Line 0: The Design Mode requires a valid Qt kit.:
@FCTravassos That's the Qt version. You should make a screenshot of the Kits page, with the details of the active kit.

@Pl45m4 said in Cannot open this QML document because of an error in the QML file: Line 0: The Design Mode requires a valid Qt kit.:
Is the error message coming from QtCreator or Qt Design Studio ?
Because you seem to create a QML project and your Kit doesn't seem fully configured for this
The message is coming from Qt Creator
@FCTravassos Which Kit is selected when you try to open that QML file?
-
@FCTravassos Which Kit is selected when you try to open that QML file?
@jsulm It's the Desktop Qt 6.9.1 MinGW 64-bit.

-
Which type of project are you trying to use? C++ or Python?
At https://forum.qt.io/topic/158263/line-0-the-design-mode-requires-a-valid-qt-kit there a similar case.