Connecting in Qt 5. There are several ways to connect a signal in Qt 5. Qt 5 continues to support the old string-based syntax for connecting signals and slots defined in a QObject or any class that inherits from QObject (including QWidget). Connect( sender, SIGNAL( valueChanged( QString, QString ) ), receiver, SLOT( updateValue( QString ) ) ).
Qt Public Slots
I have some time working with Qt and I have always used private slots. I have never thought too much about it.
Public Slots
Currently, I have an application with several dialog boxes, which in turn have a number of widgets. The functionalities that must be executed when the user interacts with such widgets
are implemented as slots. Example: Clicking on a particular button zooms in on an image that is displayed.
Now I ask myself:
C++ Private Slots
Is it correct that such slots are private?
Would it be of any use to make such public slots?
What is expected (standard) in these cases?