Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?
I am able to do it by:
In MainWindow.h, add the line:
public slots: void example();
in the MainWindow class.
In MainWindow.cpp
void MainWindow::example() { }
}