Unknown module in QT: declarative

Sorry, this might be a stupid question, but I'm completely new to QT, I just need to run the project and write some data.

I installed Qt "qt-unified-windows-x86-2.0.3-2-online", open the project, and then click "Settings", and then I got this error: Unknown module in QT: declarative

which will not allow me to compile the code. Everything else looks good. From the study, I realized that I might miss the library, I use windows. How to get the right library in the windows? Is this the library I need?

I am using the "Qt Creator user the kit Desktop Qt 5.7.0 MinGW 32bit".

Thank.

I download linux, the live version, to try to run the code there

+4
source share
2 answers

An error occurred while trying to create a project that depended on the obsolete QtDeclarative module in Qt version 5.6 and later, since the module was removed in version 5.6 .

The source code of the module is still available, you can compile it from the source. Or you can install Qt version below Qt 5.6 to create a project.

+4
source

You probably do not have any declarative library, it is recommended to use a command line utility called windeployqt here, something like

windeployqt -declarative
0
source

Source: https://habr.com/ru/post/1654844/


All Articles