When i tried to connect to mysql, there is a error:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODB
If anyone is stupid as i am so that's for you: What basically you should do is
So basically for those who want to understand what happened here:
That "qsqlmysql" plugin is basically a qt interface that uses mysql-C connector methods. But unfortunately this connector does not distributed with Qt, so you should provide it by yourself.
If you want to distribute your software you should copy "libmysql.dll" into the folder with your ".exe" file.
I hope this will help someone save some time (3hours for me :) ).