私はこのテーブルを持っています:
QSqlQuery createTblSMS("CREATE TABLE sms_tbl("
"isRead BOOLEAN NOT NULL,"
"readTime DATETIME,"
"arrivalTime DATETIME NOT NULL,"
"sender TEXT NOT NULL,"
"receiver TEXT NOT NULL,"
"smsContent TEXT,"
"PRIMARY KEY(arrivalTime, sender, receiver));", QSqlDatabase::database(mConnectionName));
smsModel = new QSqlTableModel(this, QSqlDatabase::database(mConnectionName));
smsModel->setTable("sms_tbl");
smsModel->select();
QModelIndex
たとえば、特定の複合主キーを見つけるにはどうすればよいですか。
"2010-08 12 12:04:15" "075588455" "077789585"