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

QTreeView does not set QStyle::State_Editing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.6.2, 5.11.0
    • Widgets: Itemviews
    • None

    Description

      QTreeView and QTreeWidget do not set the state QStyle::State_Editing for items that are being edited. You can query QStyle::State_MouseOver and other states in the state parameter in the QItemDelegate's paint method but QStyle::State_Editing does not work.

      See the attached example. Run it and hover over the QTreeWidgetItem's. Notice that the editing state message is never printed out to the console but the hover message does get printed.

      I have a patch ready that I'll submit shortly.

      Attachments

        For Gerrit Dashboard: QTBUG-68947
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mmcdonnell Michael Mc Donnell
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change