How to remove a QML file from a QT project correctly

I am trying to delete a QML file from my project. He is no longer needed. However, when I delete from the resource, and then try to compile through the IDE, I get the following error:

: - 1: error: there is no rule for creating the target '../MAST/fileList.qml' needed for 'debug / qrc_mast.cpp'. Stop.

What is the correct procedure to delete this file from the project?

+4
source share
3 answers

Try to clean up the project, run qmake and then rebuild the project. If it still gives an error, delete all project build files, including creating files, and then rebuild the project.

+5
source

, (.pro).

0

Removing the entire build directory (as defined in the project settings) worked for me.

0
source

All Articles