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

The clicked() signal for the QPieSlice cannot be emitted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.8.0 RC
    • 5.7.0
    • Charts
    • None
    •  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

            e0348803 Miikka Heikkinen
            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