Specific Clickable QTableView Cell

  • I am working on Qt Model View programming these days.

    My question is about making a QTableView cell clickable. Click function will create a filter model in another table. And i want to show a click icon when that cell hovered. Like this:


    How can i achieve this. Thanks in advance ..

  • Qt Champions 2017

    Put a delegate to the table (or table column) and override the editorEvent method. If you want hover interaction, you are also going to need to enable mouseTracking for the view and process the QMouseEvents manually.

  • This post is deleted!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.