Results 1 to 8 of 8

Thread: KDevelop + ODBC + Qt

  1. #1
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Unhappy KDevelop + ODBC + Qt

    Hello.

    Me help please, I am trying connect to the database access (.mdb), more giving this error.

    QSqlDatabase: QODBC driver not loaded
    QSqlDatabase: available drivers: QMYSQL3 QODBC3

    I am a newcomer.

    Thanks.
    Cleber Ramos

  2. #2
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: KDevelop + ODBC + Qt

    include your code please.. maybe their a problem in your QODBC plugins or your code it self..

  3. #3
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDevelop + ODBC + Qt

    QSqlDatabase *conexaoBD = QSqlDatabase::addDatabase( "QODBC" );

    if (conexaoBD!=0)
    qWarning( "QODBC ---> OK!" );

    conexaoBD->setDatabaseName( "DRIVER={Microsoft Access Driver (*.mdb)};FIL={MS Access};DBQ=ocorr_atendidas2006_2007.mdb" );

  4. #4
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: KDevelop + ODBC + Qt

    did you try using QODBC3 instead of QODBC?

  5. #5
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDevelop + ODBC + Qt

    I alter for QODBC3, error:

    [iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded QODBC3: Unable to connect

  6. #6
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: KDevelop + ODBC + Qt

    im using QT under windows OS. after installation i run configure, then the dll files for ODBC and sqllite will be made and this dlls are ready to use. i dunno in linux/unix.

    try building a plugin for ODBC.

  7. #7
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: KDevelop + ODBC + Qt

    Hi,

    How building a plugin for ODBC on LInux?

    Thank,
    Cleber Ramos

  8. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: KDevelop + ODBC + Qt

    Quote Originally Posted by cleber View Post
    How building a plugin for ODBC on LInux?
    http://doc.trolltech.com/4.4/sql-dri...nectivity-odbc
    J-P Nurmi

Similar Threads

  1. KDevelop + QT + GDB = Application received SIGTRAP
    By GodOfWar in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2008, 19:59
  2. how to integrate qt into kdevelop correct way
    By amit_pansuria in forum KDE Forum
    Replies: 1
    Last Post: 25th November 2006, 08:58
  3. Basic Qt4 tutorial needed
    By pthomas in forum Qt Programming
    Replies: 26
    Last Post: 16th October 2006, 15:11
  4. KDevelop and Qt4
    By high_flyer in forum Qt Programming
    Replies: 24
    Last Post: 20th August 2006, 13:41
  5. freebsd 6 -> kdevelop wont uic
    By soul_rebel in forum KDE Forum
    Replies: 0
    Last Post: 5th January 2006, 22:00

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.