How to uninstall Qt5?

Solution 1:

  1. Open a terminal and navigate to the directory where Qt is installed.
  2. Run the command ./MaintenanceTool.

Solution 2:

Just remove the Qt5 dev packages, that should do it:

sudo apt autoremove '.*qt5.*-dev'

Inspect the shown list of packages to be removed carefully before hitting yes, though! If there are some you want to keep, do apt install for them to mark them manually installed.

Solution 3:

If you want to remove/uninstall Qt Creator then follow this:

Open your terminal (Ctrl + Alt + T), then...

  1. To only uninstall Qt Creator:

    sudo apt-get remove qtcreator

  2. If you want to remove Qt Creator and its dependent packages as well:

    sudo apt-get remove --auto-remove qtcreator

Reference website: https://www.thelinuxfaq.com/ubuntu/ubuntu-17-04-zesty-zapus/qtcreator?type=uninstall