Results 1 to 8 of 8

Thread: MySQL and QT

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default MySQL and QT

    Hello:

    I have mysql 5.x and QT 4.x installed on Suse Linux. I would like to access mysql through QT. I searched for a solution on the web but haven't found a satisfactory one.

    I tried the following code:

    Qt Code:
    1. #include <QCoreApplication>
    2. #include <QtSql>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QCoreApplication a(argc, argv);
    7.  
    8. qDebug() << QSqlDatabase::drivers();
    9.  
    10. return a.exec();
    11. }
    To copy to clipboard, switch view to plain text mode 
    but got the output as:

    ("QSQLITE",QPSQL7","QPSQL")


    would apreciate any help.
    Last edited by wysota; 15th March 2011 at 15:10. Reason: missing [code] tags

Similar Threads

  1. I need MySQL driver for Qt 4.6, WindowsXP(32), MySQL 5.1
    By User_3 in forum Installation and Deployment
    Replies: 7
    Last Post: 15th October 2010, 15:19
  2. MySQL
    By Fallen_ in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2010, 05:39
  3. Qt with MySQL
    By FoleyX90 in forum Qt Programming
    Replies: 2
    Last Post: 22nd July 2010, 15:42
  4. Qt with MySql
    By lyucs in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2010, 22:27
  5. MYSQL 5 Table qt model as small Mysql admin
    By patrik08 in forum Qt-based Software
    Replies: 0
    Last Post: 1st May 2007, 09:43

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.