Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

SqlDatabase provides no drivers



  • Perhaps I'm missing something. In my cross-compiled environment (Qt5.11 for ARM) QSqlDatabase::drivers() returns an empty array and of course I cannot do anything with databases.

    I checked and I have in /usr/lib/:

    • libQt5Sql.so.5.11.2
    • libQt5Sql.so.5
    • libQt5Sql.so.5.11
    • libsqlite3.so.0
    • libsqlite3.so.0.8.6

    I thought should be enough. What other files are needed?


  • Lifetime Qt Champion

    Hi,

    The drivers are plugins so you need to also have the plugins deployed.


Log in to reply