Results 1 to 11 of 11

Thread: cannot open include file qsqldatabase

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Dec 2012
    Posts
    197
    Thanks
    25
    Thanked 41 Times in 33 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: cannot open include file qsqldatabase

    Quote Originally Posted by Saurian
    Yes, I mean in which location.
    it depends on what SQL management application your using. Check your applications guide to find out the location.
    Quote Originally Posted by Saurian
    YI want to be able to install this application on any PC and to work there. I want to compile it in Ubuntu too and be able there to make the application work.
    im not sure of this , but i would say you have to place the database in your project and specify the path for it
    Qt Code:
    1. QString applicationPath= QApplication::applicationDirPath();/*get the application path*/
    To copy to clipboard, switch view to plain text mode 
    then append a QDir::separator() , add the database name , and set it to the setDatabaseName(/*QString representing that database path*/)

    I've tried to copy libmysql.dll to the folder where my .exe file is and to my qtcreator.exe folder and it's still not working
    place the .dll file in plugins/sqldrivers directory.
    you might need more than the .dll file , take a look at this thread http://qt-project.org/forums/viewthread/19122.
    you can also try to load QODBC driver since it more of a general driver.
    That's my suggestion , but ill wait with your for a reply from a more experienced developer to learn something new.
    Last edited by toufic.dbouk; 23rd September 2013 at 17:33.

Similar Threads

  1. Replies: 1
    Last Post: 23rd May 2011, 04:53
  2. Replies: 3
    Last Post: 1st November 2010, 16:33
  3. Replies: 4
    Last Post: 9th May 2010, 16:18
  4. Replies: 2
    Last Post: 9th March 2010, 05:21
  5. Replies: 10
    Last Post: 15th June 2009, 19:44

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
  •  
Qt is a trademark of The Qt Company.