Results 1 to 3 of 3

Thread: H2 database and Qt Database support

  1. #1
    Join Date
    Aug 2007
    Posts
    265
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default H2 database and Qt Database support

    Hello,
    I have an H2 database that my qt app (c++) would like to connect to. I understand Qt has postges support in sql database module and according to H2 website
    "This database does not come with its own ODBC driver at this time, but it supports the PostgreSQL network protocol.".

    I was searching for some sample code but I am out of luck.

    Can somebody help me with link and clues on how to do this?

    Any help is appreciated much,
    baray98

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,589
    Thanks
    13
    Thanked 1,585 Times in 1,514 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: H2 database and Qt Database support

    It all seems to be here. Once you have the Postgres ODBC driver installed you use it from the Qt ODBC driver (not Postgres driver) like any other ODBC data source.

    That page implies that the Pg ODBC driver is 32-bit but there are also 64-bit version on the site the page links to. Your application will have to be compiled 32 or 64-bit to match.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    2
    Platforms
    Unix/X11

    Default Re: H2 database and Qt Database support

    Quote Originally Posted by ChrisW67 View Post
    /.../ Once you have the Postgres ODBC driver installed you use it from the Qt ODBC driver (not Postgres driver) like any other ODBC data source.
    Does it mean, the QPSQL doesn't work ?

Similar Threads

  1. Replies: 0
    Last Post: 6th September 2018, 10:06
  2. Model/View programming support for database locks!
    By graciano in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2013, 04:11
  3. Replies: 2
    Last Post: 27th August 2012, 04:27
  4. Qt to support XML database?
    By zhongzhu in forum Qt Programming
    Replies: 2
    Last Post: 9th July 2009, 12:51
  5. Qt support for MS Access database
    By Gayathri in forum Qt Programming
    Replies: 1
    Last Post: 23rd November 2006, 14:14

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.