qt.conf is not loading plugins on linux and Mac
Hi All,
I have qt application which is based on qslite. My folder structure is
bin ----
plugins ---> sqldrviers
myapplication
qt.conf
Code:
[Paths]
Plugins=./plugins
lib
libQt* libraries
I resolved librariy linking via rpath.
Now my problem is sql deivers are not loaded. I am getting below error messages
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins.
Even i tried with QCoreapplication::addlibrarypath and set library path. Same error i am getting
How do i solve this issue
Thanks
Addu R
Re: qt.conf is not loading plugins on linux and Mac
I think that real problem is QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins.
How did You create an instance of QCoreApplication or QApplication ? Show us some code.
Re: qt.conf is not loading plugins on linux and Mac
Code:
MainWindow w;
w.show();
a.exc();
Re: qt.conf is not loading plugins on linux and Mac
Hi,
I fixed these issue myself
Re: qt.conf is not loading plugins on linux and Mac
How did you fix the problem? can you please share your solution?
I am also running into this same problem. I tried addLibraryPath and changing the order of things and still get the same error:
PySide.QtSql.QSqlError(-1, "Driver not loaded"...)
Thanks,
-Daniel
Re: qt.conf is not loading plugins on linux and Mac
Quote:
Originally Posted by
dawi
I am also running into this same problem.
That's not the same problem unless you also get a message "QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins".