Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. PieChart with tooltip
Qt 6.12 LTS is out! See what's new in the release blog

PieChart with tooltip

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
pieseries qml
1 Posts 1 Posters 330 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.
  • F Offline
    F Offline
    firen
    wrote on last edited by firen
    #1

    Hi everyone,

    I would like to connect my PieSeries with a tooltip. Cause the datasource is from C++ i generate the PieSeries dynamical this way:

            Connections{
                target: chartData
                onAssignmentPointsRead: //Signal from the C++ object
                {
                    chart_assignPoints.removeAllSeries();
                    var seriesOut = chart_assignPoints.createSeries(ChartView.SeriesTypePie, "Pos-Points");
                    seriesOut.size = 0.96
                    seriesOut.holeSize = 0.7
                    seriesOut.append("Assignment 1", chartData.getAssignmentPoint(ChartData.POSASSIGN1)); //ChartData is the C++ object
    }
    

    Where and how could I add the toolTip? In the Connection? I need the toolTip to show the labeltext + the value in Slices where the space is not enough.

    Thanks in advance!

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