You need to connect a slot to the QPieSlice::hovered() signal for each slice. In the slot, you call _slice.setExploded( state ) (where "state" is the value passed into the slot from the signal). You can use the same slot for all of the slices, but you would have to use the QObject::sender() method in the slot to retrieve the instance of the pie slice that sent the signal.
BTW, QPieSlice does not have any "onHover" method.
Bookmarks