Finally, I have solved my problem.
I add the ARCGISRUNTIMESDKQT_10_2_3="/home..", RUNTIMEHOME="/home/..", ARCH="64" to the /etc/environment file
and restart computer. It works.
I think running ./init_sdk_qt64.sh before opening Qt Creator does not work so I was getting the errors.
By adding the variable to /etc/environment it is ok.
But I have one small question more:
I tried the code on two different machines.
The code on desktop pc works successfully.
The code on leptop starts server but gives the error " USCitiesStates.mpk failed to start. Failed to create local service." Any idea ?
Thank in advance.