Results 1 to 4 of 4

Thread: How to load QOCI driver

  1. #1
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Post How to load QOCI driver

    plz. give information how to load QOCI drivers.

    i hav QSQLITE at present i able to work on that but some quries are not working such as "select * from tab" or "select count(*) from table_name" .why this?

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to load QOCI driver

    To load QOCI drivers:

    http://doc.qt.io/qt-4.8/http://developer.qt.nokia.com/doc/qt-4.8/sql-driver.html

    then to use it

    QSqlDatabase db = QSqlDatabase::addDatabase ("QOCI", "name of the connection");


    Some advices:
    *you need to open the command promp in a Qt Environment, you do that by opening the : Qt SKD->Desktop->Qt 4.7.4 for Desktop (MinGW)
    *make sure to follow ALL the steps!
    *make sure to have the *.dll driver of QOCI..

  3. #3
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to load QOCI driver

    the url which u hav give is not working ????

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to load QOCI driver

    Open Qt Assistant... it comes with every Qt install. In the index "Look for" SQL then open the page titled "SQL Database Drivers"

Similar Threads

  1. How to load PSQL Driver for QT in Ubuntu
    By Srinivas_30sep in forum Newbie
    Replies: 2
    Last Post: 8th April 2011, 14:30
  2. SQL driver load problem
    By vieraci in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2009, 14:59
  3. Cannot load SQL driver in Visual C++ (but works in QtCreator)
    By Tomis in forum Installation and Deployment
    Replies: 2
    Last Post: 5th November 2009, 15:32
  4. Cannot load SQLITE driver on clean target
    By ForestDweller in forum Installation and Deployment
    Replies: 1
    Last Post: 15th December 2008, 00:49
  5. Can't load the postgre driver!
    By brevleq in forum Installation and Deployment
    Replies: 6
    Last Post: 12th January 2008, 05:23

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.