Ok, then I give up. Only one thing, can you connect without your Qt program remotely to your database? Using something like this:

mysql -h <your remote ip> -u <your db user> -p