• What does
    Qt Code:
    1. qWarning() << QSqlDatabase::drivers();
    To copy to clipboard, switch view to plain text mode 
    tell you?
  • Use exec("CREATE...") there is no need to use prepare.


From the docs:
Returns true if the query is active. An active QSqlQuery is one that has been exec()'d successfully but not yet finished with.
So maybe the create statement was successful but already finished, because a normal CREATE don't need much time. Have you checked your created database file, I guess the table is created there...


EDIT: and, ähh, your sql statements aren't valid!!!