What's about using Qt::TextAlignmentRole and Qt::BackgroundRole.