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

Wrong checkbox geometry when used in custom delegate in QTreeView

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes