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 879 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.
  • T Offline
    T Offline
    teddybilba
    wrote on 11 Aug 2016, 14:26 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
    • V Offline
      V Offline
      VRonin
      wrote on 11 Aug 2016, 16:27 last edited by VRonin 8 Nov 2016, 16:28
      #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

      1/2

      11 Aug 2016, 14:26

      • Login

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