I know that QT Creator is a working progress project and I prefer it to Eclipse.
But sometimes the setting of the Project working env. is frustrating
I have a project and if I run it from inside Qt Creator I get " QSQl driver not loaded".
If I run it from a command prompt no problem.
Follow the .pro
TEMPLATE = app
TARGET =
DEPENDPATH += . \
debug \
release
INCLUDEPATH += .
# Input
HEADERS += chooselang.h \
data.h \
daticliente.h \
mainwindow.h \
myfilter.h
FORMS += chooselang.ui \
daticliente.ui \
mainwindow.ui
SOURCES += chooselang.cpp \
daticliente.cpp \
main.cpp \
mainwindow.cpp \
myfilter.cpp
RESOURCES += omnivision.qrc
QT += sql \
network \
svg
TEMPLATE = app
TARGET =
DEPENDPATH += . \
debug \
release
INCLUDEPATH += .
# Input
HEADERS += chooselang.h \
data.h \
daticliente.h \
mainwindow.h \
myfilter.h
FORMS += chooselang.ui \
daticliente.ui \
mainwindow.ui
SOURCES += chooselang.cpp \
daticliente.cpp \
main.cpp \
mainwindow.cpp \
myfilter.cpp
RESOURCES += omnivision.qrc
QT += sql \
network \
svg
To copy to clipboard, switch view to plain text mode
And this is the output of Qt Creator:
Starting C:\Users\giuseppe\Documents\Programmi\OmniVision\release\omnivision.exe...
Lib Path ("C:/Qt/2010.05/qt/plugins", "C:/Users/giuseppe/Documents/Programmi/OmniVision/release")
database clienti= "C:/Users/giuseppe/Documents/Programmi/OmniVision/release/clie.db"
Problems with database clients
= QSqlError(-1,
"Driver not loaded",
"Driver not loaded") C:\Users\giuseppe\Documents\Programmi\OmniVision\release\omnivision.exe exited with code 0
Starting C:\Users\giuseppe\Documents\Programmi\OmniVision\release\omnivision.exe...
Lib Path ("C:/Qt/2010.05/qt/plugins", "C:/Users/giuseppe/Documents/Programmi/OmniVision/release")
database clienti= "C:/Users/giuseppe/Documents/Programmi/OmniVision/release/clie.db"
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
Problems with database clients= QSqlError(-1, "Driver not loaded", "Driver not loaded")
C:\Users\giuseppe\Documents\Programmi\OmniVision\release\omnivision.exe exited with code 0
To copy to clipboard, switch view to plain text mode
I put the entire sqldrivers folder inside release directory.
Any help appreciated
Bookmarks