Can I copy QtCore folder from QtCreator and use it in my Visual Studio 2013 C++ project?
I need them to be able include this:
#include "QtCore/qdatetime.h"
#include "QtCore/qnamespace.h"
Which I found in that QtCore folder.
For be able to run this:
double QDateTime2RatTime(const QDateTime *qdt) {
const qint64 diffFrom1970To1900 = 2209161600000;
const double MSecsPerDay = 24.0*60.0*60.0*1000.0;
const double InvMSecsPerDay = 1.0 / MSecsPerDay;
qint64 diff = qdt->toMSecsSinceEpoch() + diffFrom1970To1900;
return ((double)diff)*InvMSecsPerDay;
}
That function is called like this:
char* stringDateTime = "2000-02-29T12:05:00+02:00";
QDateTime qTime = QDateTime::fromString(stringDateTime, Qt::ISODate);
double time = convertTime(&qTime);
Conclusion:
Input: char* stringDateTime = "2000-02-29T12:05:00+02:00";
output:double time
Process: using function double QDateTime2RatTime(const QDateTime *qdt)
Dependencies: Qt I don't have it in my Visual Studio 2013
Question: Can I use QtCore from Qt Creator which I installed? (latest version). Just copy QtCore folder to my Visual Studio project folder and include headers I need will it work with that binaries?