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

Qt.AlignRight | Qt.AlignVCenter is ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.2
    • PySide
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes