c++qtqmlqt-resource

How to properly remove a QML File from a QT project


I am trying to remove a QML file from my project. It is no longer needed. However, when I delete from the resource then attempt to compile through the IDE, I receive the following error:

:-1: error: No rule to make target '../MAST/fileList.qml', needed by 'debug/qrc_mast.cpp'. Stop.

What is the proper procedure to remove this file from the project?


Solution

  • Try to clean your project, run qmake and then rebuild the project. If it still gives the error, delete all project build files including make files and then rebuild your project.