I am trying to do a simple connect to a mysql db

Qt Code:
  1. QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
  2. db.setHostName("localhost");
  3. db.setDatabaseName("iff");
To copy to clipboard, switch view to plain text mode 

I get the error:
Qt Code:
  1. QSqlDatabase: QMYSQL driver not loaded
To copy to clipboard, switch view to plain text mode 

I have searched and tried the following
Qt Code:
  1. int main( int argc, char **argv )
  2. {
  3. QCoreApplication app( argc, argv );
  4. qDebug() << QSqlDatabase::drivers();
  5. }
To copy to clipboard, switch view to plain text mode 

However the output is simply:
()

I have all the mysql packages installed on my Fed 5 distro. I am using Qt4. I can see the qt-mysql.h file, or whatever it is called. I have tried to do the configure thing from the faq's here and at trolltech's site, but I always get can't find configure or bad command. I don't even know the location to run this configure script from. Any help would be appreciated.