Results 1 to 11 of 11

Thread: Connecting Qt with PostgreSql

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2012
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Connecting Qt with PostgreSql

    Hello guys, I don't write in English very well. Sorry me possible errors.

    I'm trying to connect PostgreSQL 9.1 with qt creator 4.7.3, but I don't able it.

    I search in the Google and I found some libs and dlls about several drivers (MySQL, SQLite(I had already), PostgreSQL and Firebird). The QtCreator now recognizes two drivers, SQLite and Firebird, but he doesn't found the PostgreSQL driver.

    For use Firebird driver I do nothing.

    I already search various locations and I can't do it run.

    Almost all tutorials I've found, have something like this:

    http://qt-project.org/doc/qt-4.8/sql-driver.html#qpsql

    But I can't to do this.

    Neither the directories they say I have here, even after I adjust the instalation location.

    Ps.: I already to copy the dll's for the right locations.

    Thanks,

    Jonathan.

  2. #2
    Join Date
    May 2010
    Posts
    19
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Connecting Qt with PostgreSql

    Hi jonathan,

    1. Copy the files qsqlpsql.dll and libqsqlpsql.a (depending on what you have compiled i.e debug/release) to your "plugins\sqldrivers" path in "QTDIR"
    2. Copy libeay32.dll,libintl-8.dll,libpq.dll and ssleay32.dll to your project directory

Similar Threads

  1. connection QT with postgresql
    By khadija123 in forum Qt Programming
    Replies: 6
    Last Post: 31st March 2012, 21:09
  2. Replies: 2
    Last Post: 11th February 2011, 17:53
  3. Problem in connecting to PostgreSQL
    By c_srikanth1984 in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2009, 07:18
  4. requiredStatus on Qt 4.3 and PostgreSQL 8.3.3
    By Auryn in forum Qt Programming
    Replies: 9
    Last Post: 2nd September 2008, 22:06
  5. postgreSQL - Last Inserted ID
    By nnidza in forum Qt Programming
    Replies: 4
    Last Post: 2nd April 2007, 08:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.