信号与槽函数在连接时是无参数的,只写参数类型,如下:
错误形式: connect(&series,SIGNAL(hovered(const QPointF& point,bool state)),this,SLOT(mouseHint_slot(const QPointF& Point,bool state))); 正确形式:connect(&series,SIGNAL(hovered(const QPointF&,bool)),this,SLOT(mouseHint_slot(const QPointF&,bool)));