Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Specific Clickable QTableView Cell
Forum Updated to NodeBB v4.3 + New Features

Specific Clickable QTableView Cell

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 627 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R_IrudezuR Offline
    R_IrudezuR Offline
    R_Irudezu
    wrote on last edited by R_Irudezu
    #1

    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:
    •
    •
    •

    0_1553625310849_Adsız.jpg

    •
    •
    •
    How can i achieve this. Thanks in advance ..

    kshegunovK 1 Reply Last reply
    0
    • R_IrudezuR R_Irudezu

      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:
      •
      •
      •

      0_1553625310849_Adsız.jpg

      •
      •
      •
      How can i achieve this. Thanks in advance ..

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      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.

      Read and abide by the Qt Code of Conduct

      R_IrudezuR 1 Reply Last reply
      3
      • kshegunovK kshegunov

        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.

        R_IrudezuR Offline
        R_IrudezuR Offline
        R_Irudezu
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved