How to use Qt in CLion

Hi !

I'm a student and I would like to use CLion to create some Qt-based project , but I don't know how to do that ???

I've already search on the net but I didn't find anything : /

Can you help me ? : )

Thank you !



Here is a simple example of Qt5 based project (google-translate-based English <-> Russian translator, hidden in system tray). It's not a finished application, it's just a quick prototype, but I hope it helps. The project was checked on Linux only, but it should work on other OS too.


Thank you but it doesn't work on my pc : /

I don't know how to configure correctly my environnement to make Qt works with CLion :(


Which OS do you use? If it's Linux, then you should install Qt development package. On Debian based distros you need to install qt5-default package. On Fedora you need qt5-devel package. On Arch Linux it's sufficient to install qt5-base package.


Im' on Windows 7 but I'll try it on Linux (Elementary Os is the distro I use a lot) . Thank you : )


Well, for Windows you need to get compatible versions of MinGW and Qt. Personally I would recommend the MSYS2 project, but I don't know if it's supported by the CLion.


Please sign in to leave a comment.