Results 1 to 12 of 12

Thread: QtService & QtSql

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    18
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    4

    Default Re: QtService & QtSql

    Indeed, but for some reason it won't find my sqldrivers/qsqlmysqld4.dll, go figure...

  2. #2
    Join Date
    Oct 2014
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QtService & QtSql

    Try this, it works for me.


    int main(int argc, char *argv[])
    {
    QString app_path = QFileInfo(QString::fromLocal8Bit(argv[0])).absolutePath();
    QCoreApplication::addLibraryPath(app_path);

    OpcService service(argc, argv);
    return service.exec();
    }


    And copy qsqlmysql4.dll to "sqldrivers" subdirectory of your .exe file.

Similar Threads

  1. QtService Library (dll) for windows
    By ruben.rodrigues in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd October 2010, 19:18
  2. QtService on Windows as Non-Interactive
    By stefanadelbert in forum Qt Programming
    Replies: 2
    Last Post: 26th April 2010, 03:27
  3. Help on QTcpSocket, QTService and QThread
    By josecarlosmissias in forum Newbie
    Replies: 1
    Last Post: 12th November 2009, 16:37
  4. QtService fails to start
    By a550ee in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2006, 13:34
  5. QtService and GAC loadable dll
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 17th July 2006, 03:39

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.