I have the signals from a pushButton and a checkBox both connected to the same slot:
connect(pushButton_redraw_dist_plots, SIGNAL(clicked()), this, SLOT(drawDistPlots()));
connect(cbox_USE_LOGNORMAL_DIST, SIGNAL(stateChanged()), this, SLOT(drawDistPlots()));
The pushButton signal does invoke drawDistPlots(), but the checkBox signal does not. I know that clicked() takes a bool argument, and stateChanged() takes an int argument, but I'm not sure if the arguments are needed. From what I observe, it seems that the clicked() signal functions without the argument, but apparently the stateChanged() signal does not. This seems odd. I am omitting the arguments because I don't know how to make drawDistPlots() take either a bool or an int argument. Is there a way to do what I want?
Thanks
Gib
Edit:
I decided to try making drawDistPlots() take a dummy int argument, then use these connect statements:
connect(pushButton_redraw_dist_plots, SIGNAL(clicked(bool)), this, SLOT(drawDistPlots(int)));
connect(cbox_USE_LOGNORMAL_DIST, SIGNAL(stateChanged(int)), this, SLOT(drawDistPlots(int)));
This compiles (to my surprise), but the pushButton signal is not received.
Bookmarks