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
Qt 6.11 is out! See what's new in the release blog

Dynamic tooltip for QTableView with QStandardItemModel

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.0k 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
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      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
      https://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