Hi,

I am trying to compile a project in VS2017 which uses the QtCore library. So the project is already created and it has been created using NetBeans, not using the Qt IDE.

This is what I did so far:

  • Downloaded the last Qt release
  • Unpacked everything in C:\Qt
  • In VS properties > VC++ Directories > Include directories - I added C:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include and C:\Qt\Qt5.9.2\5.9.2\msvc2017_64\include\QtCore
  • In VS properties > VC++ Directories > Library directories - I added C:\Qt\Qt5.9.2\5.9.2\msvc2017_64\lib


As far as I know, I need to "moc" the headers which contains Q_OBJECTs. I read that is possible to automatize this process with Qt VS Tools, but I don't know how.

Anyone? Thank you