Dynamic tooltip for QTableView with QStandardItemModel

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

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

Log in to reply

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