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

QTableView::itemDelegate() receives an incorrect option.rect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
    • Widgets: Itemviews
    • None

    Description

      Attached is an example of the problem. Resize the first column slightly to get the size information. The itemDelegate's sizeHint() always seems to receive a rect that is 1 pixel larger than the painted area.

      > size: 109 x 53
      paint size: 108 x 52

      This results in wrong text wrapping in the example..

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            adamm Adam Majer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes