QRect QFontMetrics::boundingRect(.........)Wie bekomm ich nun heraus welche größe der Text hat?
Gruß Sig
QRect QFontMetrics::boundingRect(.........)Wie bekomm ich nun heraus welche größe der Text hat?
Code: Alles auswählen
QVariant MeinModel::data ( const QModelIndex & index, int role ) const
{
if (role == Qt::TextAlignmentRole)
return Qt::AlignCenter;
//..
}