It not helps. I need this:
standard-views.png
Added after 11 minutes:
Ok I have solution:
// my model
QVariant TestModel
::headerData(int section, Qt
::Orientation orientation,
int role
) const {
if( orientation == Qt::Vertical && role == Qt::DisplayRole )
{
}
else
{
}
}
// my model
QVariant TestModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if( orientation == Qt::Vertical && role == Qt::DisplayRole )
{
return QVariant( ">" );
}
else
{
return QSqlRelationalTableModel::headerData( section, orientation, role );
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks