How to properly remove a QML File from a QT project

2k Views Asked by At

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?

3

There are 3 best solutions below

2
Nejat On BEST ANSWER

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.

0
dom0 On

You may need to remove it from the project (.pro), too.

0
Haselnussstrauch On

Deleting the whole build directory (as defined in the project settings) worked for me.