Anyone know how to get this working on mac ?

So far I have tried

main.cpp
Qt Code:
  1. #ifdef Q_WS_MAC
  2. QDir dir(QApplication::applicationDirPath());
  3. dir.cdUp();
  4. dir.cd("plugins");
  5. QApplication::addLibraryPath(QStringList(dir.absolutePath()));
  6. #endif
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. db = QSqlDatabase::addDatabase("QSQLITE");
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. mkdir App.app/Contents/plugins
  2. mkdir App.app/Contents/plugins/sqldrivers
  3. cp /Developer/Qt/Desktop/Qt/473/gcc/plugins/sqldrivers/libqsqlite.dylib App.app/Contents/plugins/sqldrivers/.
  4.  
  5. install_name_tool -id @executable_path/../plugins/sqldrivers/libqsqlite.dylib App.app/Contents/plugins/sqldrivers/libqsqlite.dylib
  6. 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
  7. 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 Code:
  1. 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