Qt connecting to postgreSQL database without configuring ODBC -


i'm trying connect postgresql database without configuring system dsn odbc, i've googled lot , i've tried lot of connection strings didn't work, maybe i'm doing wrong. here 1 of connection strings i've tried:

dbconnectionstring = qstring("driver=postgresqlunicode(x64)}| server="+dbhost+"|port=%1|database="+dbname+"|uid="+username+"|pwd="+password+"|byteaaslongvarbinary=1").arg(port) db.setdatabasename(dbconnectionstring);

any suggestion?


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -