pluginLoader = new QPluginLoader("/data/data/org.kde.necessitas.example.<package_name>/lib/libqsqlmysql.so"); qDebug(pluginLoader -> load() ? "MYSQL plugin was loaded":"MYSQL plugin was not loaded"); if (pluginLoader -> instance()) { QSqlDriverPlugin * driver_plugin = (QSqlDriverPlugin *)pluginLoader -> instance(); QSqlDriver * mysql_drv = driver_plugin -> create("QMYSQL"); if (mysql_drv) { qDebug("mysql added"); remote_db = QSqlDatabase::addDatabase(driver_plugin -> create("QMYSQL"),"MYSQL connection"); } else qDebug("mysql not created"); }
#include <QAndroidStyle>QApplication a;.....a.setStyle(new QAndroidStyle());