Ubuntu – Qt5 installation and path configuration


I have installed Qt5 from the Qt5 project site, to the following directory


I would also like to mention that I had Qt4 installed previously, I have removed all instances of Qt4 through the software center.

Now that I issue designer from the command prompt, the system gives the following error:

designer: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/designer': No such file or directory

What can be done to correct this problem?

Best Answer

Replace Default Qt version paths in:

or in newer releases /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf:



qtchooser -print-env

Reference: man qtchooser

Related Question