Is it possible to use only one Qt module, like a third-party DLL?

I was looking for a database access library for C ++ that would work under Windows. I tried

  • SOCI: not compiled
  • SQLAPI ++: not free

The next option was to use the Qt DB access module, QtSql.

Is it possible to use QtSql without importing or linking any other Qt materials?

+3
source share
1 answer

Yes, you can only compile part of Qt Dll. But I assume that in all cases you will have to build against QtCore. Therefore, your .pro file should have

qt += core sql
+3
source

All Articles