I'm using a QProgressBar and have already figured out how to send the progress from a specific class in the logic layer with this procedure:
Now, I would like my specific class in the logic-layer to send the progress through another class.
For example:
I tried to imitate this procedure for using a connection and signal from class B to C, but it doesn't seem to be working.
Any answer will be appreciated
OK I figured it out.
What I did is to send the peogress-bar object from MainWindow (view layer) to LogicClass1 (logic layer)
and then to connect it with SIGNAL to LogicClass2
.
Of course, LogicClass1
should inherit from QObject as mentioned above-
class LogicClass1 : public QObject
{
Q_OBJECT
.
.
.
And most important thing (because I forgot about it): right click on the project and "Run qmake" :)