Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73549

QTableView editor for right-aligned number cells: Rendering issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • None
    • 5.9.2
    • Widgets: Itemviews
    • None
    • Ubuntu Linux
    • Linux/X11

      I am using QTableView with a custom QAbstractTableModel. My model's data(...) method returns Qt::AlignRight | Qt::AlignVCenter for Qt::TextAlignmentRole. This correctly right-aligns the column. When I edit a cell containing a number, a spin box appears for changing the value. But the background of this spin box contains the last digit of the number in the cell (please see the attached screenshot). It appears as if the spin box did not clear its background before rendering.

        1. Screenshot.jpg
          17 kB
          Michael Herrmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mherrmann Michael Herrmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes