Thank you for your reply. The lastError().test() prints out as follow.

"[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). QODBC3: Unable to connect"

Is any possible it still uses default 1433 port instead of specified port 5555?