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. Dynamic tooltip for QTableView with QStandardItemModel

Dynamic tooltip for QTableView with QStandardItemModel

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.4k Views
  • 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.
  • M Offline
    M Offline
    Mr Pang
    wrote on last edited by
    #1

    Hi,
    I want to add ToolTip for my QTableView, the tip String is created by calling external program and geting its output. When user put the mouse pointer to a row in my table, I need to get the row number , and then call external program to get the output, then show the output as tooltip. The output may be changed by time, so I can not bind the output to QStandardItem.
    I have no idea how to implement it now. Any guidance? Thanks!

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      How about updating your model with tooltip whenever output changes in the backend. Please note tool tip is associated with model and not with view. So any change in model should automatically show in TableView. You don't have to call when ever the mouse points to particular cell and get the tool tip.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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