Uninstall qt 4 from mac os

2019-04-08 21:42发布

问题:

I just installed wrong qt version on my Mac OS. Qt version is 4.8.5. Qt5 is installed into a separate folder, but version 4 is spread over the system, I cannot just delete one folder.

Is there an easy way to uninstall it?

回答1:

If I remember correctly, there is python script somewhere in /Developer/qt/tools.../uninstall-qt.py

I'm not sure about the names, but you'll recognise the script.

Also, you'll have to run it with sudo, smth like this:

sudo python ./uninstall-qt.py

I hope it helps.



回答2:

With later versions of macOS and Qt, the solution seems to be to run the MaintenanceTool, as described on the Qt wiki and in another answer.

You should find the tool in ~/Library/Qt.



标签: macos qt qt4