[PyQt] Cannot connect to the clicked signal of a QPieSeries

Phil Thompson phil at riverbankcomputing.com
Tue Mar 27 16:13:08 BST 2018


On 21 Mar 2018, at 11:45 am, Joseba Echevarria GarcĂ­a <josebagar at gmail.com> wrote:
> 
> Hi all,
> 
> I'm trying to create a dynamic QChart plot based on QPieSeries. In this context I want to be able to detect which pie slice was clicked.and to do so I have set up a basic example (shown below).
> 
> My problem is that I am unable to detect which slice was clicked; when connecting the `clicked` signal of a Series I get a TypeError exception stating:
> TypeError: C++ type 'QPieSlice*' is not supported as a signal argument type

This should be fixed in tonight's SIP *and* PyQt5 snapshots. You will also have to re-build PyQtChart.

Thanks,
Phil



More information about the PyQt mailing list