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

ItemDelegate 'hovered' property works wrong in ComboBox.

XMLWordPrintable

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

      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)
      			}
      		}
      	}
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes