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

TableView custom column delegates cannot get click events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.1
    • 5.1.0 Beta 1
    • Quick: Controls 1
    • None
    • d66245f1e8ebee65354a37c30d421a115dd0e383

    Description

      I'm not sure if this is intended or not. The following never prints "clicked" to console – the Button never gets pressed (though it does get hovered).

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      TableView {
        model: 5
        TableViewColumn {
          title: 'Title'
          delegate: Item {
            Button {
              text: 'Click'
              onClicked: console.warn('clicked')
            }
          }
        }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jfaust Josh Faust
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes