Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1537

Qt.AlignRight | Qt.AlignVCenter is ignored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      Windows

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              edlipson Ed Lipson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes