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. Tooltip on sets in a PercentBarChart
Forum Updated to NodeBB v4.3 + New Features

Tooltip on sets in a PercentBarChart

Scheduled Pinned Locked Moved Unsolved General and Desktop
tooltipbarchart
2 Posts 2 Posters 898 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.
  • teddybilbaT Offline
    teddybilbaT Offline
    teddybilba
    wrote on last edited by
    #1

    Hello,

    I was wondering if it is possible to make a tooltip for each set in the basic PercentBarChart for instance. I would like the exact percentage of each set in each column to appear in a tooltip when the mouse is above it.
    i.e when the mouse cursor is on Samantha's part in March, I'd like the tooltip to show "21.7%".

    Thank you!

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      Just a guess here: did you try using a model (QStandardItemModel) to store the values and use Qt::ToolTipRole to store the tooltip you want to show and them use QVBarModelMapper to plot it?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      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