modify you code like this
Qt Code:
  1. QSqlQuery build;
  2. bool ok = build.exec( QString("create table %1 ("
  3. "id INTEGER PRIMARY KEY AUTOINCREMENT,"
  4. "name VARCHAR(90)"
  5. "author VARCHAR(50)"
  6. "copy INTEGER"
  7. "press VARCHAR(120))").arg( name) )
  8. if( !ok )
  9. QMessageBox::information(this, "Fail", build.lastError().text());
To copy to clipboard, switch view to plain text mode 
and show us a result.