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

QAbstractTableModel Alignment flags Has a Wrong Behavior on it's QTableView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.2.4
    • PySide
    • None
    • Windows

    Description

      I am having a weird problem with PySide6, in an Model/View system, when I use the TextAlignmentRole in an QAbstratTablemodel's data() method, and return any alignment flag, all the items in the table go top left of the there cells, I can't do any proper alignment, here an minimal code to reproduce the problem:-

      https://ideone.com/cTchYj

      Attachments

        1. pyside2012.py
          2 kB
        2. Screenshot_1.png
          Screenshot_1.png
          5 kB
        3. Test.py
          2 kB

        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
              ahmedahmedeg Ahmed Ahmed Abd Al Maksoud
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes