Rechts-Ausrichtung für die Zelle in pyqt

Habe ich QStandardItemModel und QTableView. Ich möchte die Anzahl der Anpassung an das Recht. Wie kann ich festlegen, das in pyqt?

Nun habe ich es wie folgt (siehe ID) http://simple-database-explorer.googlecode.com/files/Main2.jpg

Beispiel:

self.model.setData(self.model.index(i, j, QtCore.QModelIndex()), value, role=0)
if isNumber(value):
    self.model.setData(self.model.index(i, j, QtCore.QModelIndex()), QtCore.QVariant(QtCore.Qt.AlignRight), QtCore.Qt.TextAlignmentRole)
InformationsquelleAutor hugo24 | 2010-09-23
Schreibe einen Kommentar