:-1: error: Unknown module(s) in QT: quick
时间: 2023-12-21 11:06:53 浏览: 197
qtcharts:QtCharts模块
This error occurs when the Quick module of Qt is not installed or not included in the project. To fix this error, you need to make sure that the Quick module is installed and included in your project.
If you are using Qt Creator, you can check if the Quick module is installed by going to Tools -> Options -> Build & Run -> Kits -> Qt Versions. Select the Qt version you are using and make sure that the Quick module is listed under the Inclusion of Modules section.
If the Quick module is not listed, you need to install it. You can do this by going to Tools -> Options -> Build & Run -> Kits -> Qt Versions and selecting the Manage button. From there, you can choose to install the Quick module.
Once the Quick module is installed, you need to make sure it is included in your project. You can do this by adding the following line to your .pro file:
QT += quick
Save your changes and rebuild your project. The error should now be resolved.
阅读全文