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

Wrong checkbox geometry when used in custom delegate in QTreeView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.7.0
    • Widgets: Itemviews
    • None
    • Windows 7

      There is a QTreeView with a custom delegate. The delegate has two items: checkbox and label. When checkbox is not checked everything works fine.

      When user clicks on the checkbox its gets enlarged and goes beyond boundary of the delegate. This behavior is only visible if checkbox is used as a part of a delegate, normally checkbox has the same size no matter whether it is checked or not.

      In the attached example a QTreeView with one item is created. Click on the checkbox and you will see that it gets enlarged.

        1. checkbox-bug.zip
          6 kB
          Alexey Smirnov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            alexey.smirnov Alexey Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes