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 !


Sanghren

0
7 comments
Avatar
Permanently deleted user

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.



Attachment(s):
translator.tar.gz
0
Avatar
Permanently deleted user

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 :(

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

Up ?

0
Avatar
Permanently deleted user
0

Please sign in to leave a comment.