Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.15.2
-
None
Description
I am learning Model/View programming. I was working on getting the alignment set for amounts, but I wanted to use the combination of centered vertical and right horizontal
When I use Qt.AlignRight | Qt.AlignVCenter the the QAbstractTableModel subclass data() method it ignores both. Using only one works.
elif role == Qt.TextAlignmentRole: if index.column() in (column list) return Qt.AlignRight
Attachments
Issue Links
- duplicates
-
PYSIDE-168 QtCore.Alignment objects are not correctly interpreted when returned from item.data()
- Closed