2
votes

I am trying to configure my dll project so that I can access QtCore4.dll and QtGui4.dll functions.

In my project properties under c/c++, Additional Include Directories I have added ...\Qt\4.6.0;

project properties under Linker Additional library directories I have added Qt\4.6.0\lib

Right, so what #include do I need to put in my header files so that I can get the functionality?

Before I was using dependencies and using the includes and but now I have removed the dependencies I am getting a 'cannot open file: 'QtCore/qcoreapplication.h': no such file or directory error.

This project is making me feel like a moron.

Thanks.

2

2 Answers

2
votes

Your additional Include directory should be ..\qt\4.6.0\include. If you use qmake or the VS plugin all this is done automatically.

1
votes

Save yourself time and hassle, get the plugin: http://qt.nokia.com/downloads