Anyone know how to get this working on mac ?
So far I have tried
main.cpp
#ifdef Q_WS_MAC
dir.cdUp();
dir.cd("plugins");
#endif
#ifdef Q_WS_MAC
QDir dir(QApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QApplication::addLibraryPath(QStringList(dir.absolutePath()));
#endif
To copy to clipboard, switch view to plain text mode
db = QSqlDatabase::addDatabase("QSQLITE");
To copy to clipboard, switch view to plain text mode
mkdir App.app/Contents/plugins
mkdir App.app/Contents/plugins/sqldrivers
cp /Developer/Qt/Desktop/Qt/473/gcc/plugins/sqldrivers/libqsqlite.dylib App.app/Contents/plugins/sqldrivers/.
install_name_tool -id @executable_path/../plugins/sqldrivers/libqsqlite.dylib App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
install_name_tool -change /Developer/Qt/Desktop/Qt/473/gcc/lib/QtSql.framework/Versions/4/QtSql @executable_path/../Frameworks/QtSql.framework/Versions/Current/QtSql App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
install_name_tool -change /Developer/Qt/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/Current/QtCore App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
mkdir App.app/Contents/plugins
mkdir App.app/Contents/plugins/sqldrivers
cp /Developer/Qt/Desktop/Qt/473/gcc/plugins/sqldrivers/libqsqlite.dylib App.app/Contents/plugins/sqldrivers/.
install_name_tool -id @executable_path/../plugins/sqldrivers/libqsqlite.dylib App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
install_name_tool -change /Developer/Qt/Desktop/Qt/473/gcc/lib/QtSql.framework/Versions/4/QtSql @executable_path/../Frameworks/QtSql.framework/Versions/Current/QtSql App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
install_name_tool -change /Developer/Qt/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/Current/QtCore App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
To copy to clipboard, switch view to plain text mode
QT += network webkit xml sql declarative script svg
QT += network webkit xml sql declarative script svg
To copy to clipboard, switch view to plain text mode
Thanks for pointing me with any direction
Bookmarks