Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57178

The clicked() signal for the QPieSlice cannot be emitted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.8.0 RC
    • Component/s: Charts
    • Labels:
      None
    • Commits:
       555e4c7d395bb90e950ed4d17843251127cced33

      Description

      If you add connect(slice,&QPieSlice::clicked,[]()->void{qDebug("clicked");}); before connect(slice, SIGNAL(hovered(bool)), this, SLOT(explodeSlice(bool))); in the nested donuts example http://doc.qt.io/qt-5/qtcharts-nesteddonuts-example.html, the clicked() signals cannot be emitted except the QpieSlices in the last added QPieSerie, same behaviour can be gotten when calling pressed(), doubleClicked(), or these signals of QPieSeries. It seems only the hovered() signal can work well.

        Attachments

        For Gerrit Dashboard: QTBUG-57178
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            e0348803 Miikka Heikkinen
            Reporter:
            cheery Qirui Wang
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes