How to Connect with a Database in a Server remotely ?
How is the best way to do that ?
Where can I read about communication with a Database Mysql in a server remotely ?
QSqlDatabase docs have the example you seek.
I liked this small sample
with the docs that @ChrisW67 linked to