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

ItemDelegate 'hovered' property works wrong in ComboBox.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • Windows 7
    • c886facd990acf207f3164662601222babc8dde2

    Description

      If hoverEnabled property is true then hovered property for clicked ItemDelegate is not reset after Popup is closed.

      ApplicationWindow {
      	ComboBox {
      		model: ["item1", "item2", "item3"]
      
      		delegate: ItemDelegate {
      			id: item
      
      			text: modelData
      
      			hoverEnabled: true
      			font.bold: hovered
      
      			Component.onCompleted: {
      				console.log("created", item)
      			}
      
      			Component.onDestruction: {
      				console.log("destroyed", item)
      			}
      
      			onClicked: {
      				console.log("clicked", item)
      			}
      		}
      	}
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              dmitry_voloshin Dmytro Voloshyn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes