The QSqlRelation class stores information about an SQL foreign key.
More...
QSqlRelation::QSqlRelation |
( |
| ) |
|
|
inline |
QSqlRelation::QSqlRelation |
( |
const QString & |
tableName, |
|
|
const QString & |
indexColumn, |
|
|
const QString & |
displayColumn |
|
) |
| |
|
inline |
QString QSqlRelation::displayColumn |
( |
| ) |
const |
|
inline |
Returns the column from table tableName() that should be presented to the user instead of a foreign key.
QString QSqlRelation::indexColumn |
( |
| ) |
const |
|
inline |
Returns the index column from table tableName() to which a foreign key refers.
bool QSqlRelation::isValid |
( |
| ) |
const |
|
inline |
Returns true if the QSqlRelation object is valid, otherwise returns false.
QString QSqlRelation::tableName |
( |
| ) |
const |
|
inline |
Returns the name of the table to which a foreign key refers.