QSqlRelation

The QSqlRelation class stores information about an SQL foreign key. More

Inheritance diagram of PySide6.QtSql.QSqlRelation

Synopsis

Functions

Detailed Description

QSqlRelation is a helper class for QSqlRelationalTableModel . See setRelation() and relation() for details.

See also

QSqlRelationalTableModel Relational Table Model Example

class PySide6.QtSql.QSqlRelation

PySide6.QtSql.QSqlRelation(QSqlRelation)

PySide6.QtSql.QSqlRelation(aTableName, indexCol, displayCol)

Parameters
PySide6.QtSql.QSqlRelation.displayColumn()
Return type

str

PySide6.QtSql.QSqlRelation.indexColumn()
Return type

str

PySide6.QtSql.QSqlRelation.isValid()
Return type

bool

PySide6.QtSql.QSqlRelation.swap(other)
Parameters

otherPySide6.QtSql.QSqlRelation

PySide6.QtSql.QSqlRelation.tableName()
Return type

str