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

The clicked() signal for the QPieSlice cannot be emitted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.8.0 RC
    • 5.7.0
    • Charts
    • None
    •  555e4c7d395bb90e950ed4d17843251127cced33

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes