How to Connect with a Database in a Server remotely ?
-
QSqlDatabase docs have the example you seek.
-
hi
I liked this small sample
http://karanbalkar.com/2014/02/tutorial-75-connect-to-mysql-database-using-qt-5-framework/with the docs that @ChrisW67 linked to