thanx.
{
styleOption.direction=Qt::LeftToRight;
styleOption.displayAlignment=Qt::AlignRight;
QStyledItemDelegate::paint(painter,styleOption,index);
}
void QCustomStyledItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
QStyleOptionViewItem styleOption(option);
styleOption.direction=Qt::LeftToRight;
styleOption.displayAlignment=Qt::AlignRight;
QStyledItemDelegate::paint(painter,styleOption,index);
}
To copy to clipboard, switch view to plain text mode
Bookmarks