Results 1 to 4 of 4

Thread: QSqlDatabase : no driver available

  1. #1
    Join Date
    Dec 2015
    Posts
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default QSqlDatabase : no driver available

    Hello,
    In my Qt program 32 bits, I make a connexion to a PostgreSql DB.

    On my development computer (W7 64bits), in release mode, it works but when I try on a W7 32 bits computer without Qt installed : "driver not loaded".

    Before
    Qt Code:
    1. db = QSqlDatabase::addDatabase("QPSQL");
    To copy to clipboard, switch view to plain text mode 
    I add a trace to display the list of available drivers coming from
    Qt Code:
    1. QSqlDatabase::drivers();
    To copy to clipboard, switch view to plain text mode 

    On the dev computer : "QSQLITE", "QMYSQL", "QMYSQL3", "QODBC", "QODBC3", "QPSQL", "QPSQL7"
    on the other computer : nothing !

    Something is missing but what ?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,499
    Thanked 277 Times in 272 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase : no driver available


  3. #3
    Join Date
    Dec 2015
    Posts
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QSqlDatabase : no driver available

    Great,
    I used windeployqt and it works !
    I didn't know this tool.

    Thanks a lot.

  4. #4
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    379
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSqlDatabase : no driver available


Similar Threads

  1. QSqlDatabase: QMYSQL driver not loaded
    By onder in forum Newbie
    Replies: 12
    Last Post: 29th March 2017, 14:43
  2. QSqlDataBase + Driver not loaded
    By Adraesh in forum Qt Programming
    Replies: 17
    Last Post: 24th November 2012, 16:15
  3. Replies: 2
    Last Post: 1st July 2011, 17:56
  4. QSqlDatabase: QMYSQL driver not loaded
    By earthling in forum Qt Programming
    Replies: 13
    Last Post: 4th December 2010, 15:19
  5. QSqlDatabase driver problem
    By croscato in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2008, 16:16

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.