Alignment of Table Horizontal Headers
General and Desktop
6
Posts
5
Posters
6.7k
Views
1
Watching
-
you could use something like :
@
QVariant TableModel::headerData ( int section, Qt::Orientation orientation, int role ) const
{
...other stuff
if ( orientation == Qt::Horizontal )
{
...if(role == Qt::TextAlignmentRole ){
if(col == 1){ return Qt::AlignRight; } else{ return Qt::AlignLeft; }
return QVariant();
}@hope this gives you some directions