Hi, you need to add the parameters in the signal when you call connect, but you can omit them in the slot, so you don't need a dummy parameter.
I'm not sure about connecting a signal with a bool parameter to a slot with an int, but I think it should print an error at runtime.
This should work:
connect(pushButton_redraw_dist_plots, SIGNAL(clicked()), this, SLOT(drawDistPlots()));
connect(cbox_USE_LOGNORMAL_DIST, SIGNAL(stateChanged(int)), this, SLOT(drawDistPlots()));
connect(pushButton_redraw_dist_plots, SIGNAL(clicked()), this, SLOT(drawDistPlots()));
connect(cbox_USE_LOGNORMAL_DIST, SIGNAL(stateChanged(int)), this, SLOT(drawDistPlots()));
To copy to clipboard, switch view to plain text mode
Ginsengelf
edit: you could also use the new Qt5 syntax: https://wiki.qt.io/New_Signal_Slot_Syntax
Bookmarks