QMYSQL driver available but not loaded

后端 未结 9 1144
Happy的楠姐
Happy的楠姐 2020-12-03 12:17

How do I load qmysql driver in Qt? I have the following code that produces these results:

(\"QSQLITE\", \"QMYSQL\", \"QMYSQL3\") 
QSqlDatabase:          


        
9条回答
  •  甜味超标
    2020-12-03 13:13

    On Windows (see as directory structure):

    the_qt_app.exe
    libmysql.dll
    sqldrivers/qsqlmysql4.dll
    

提交回复
热议问题