Hello everyone, there is a MainWindow widget and a class finder. How can I associate the MainWindow widget slot with a finder class signal? In the class finder, it declared signals: void redraw ();
In MainWindow declared created a variable with a class
#include "mainwindow.h" #include "QtWidgets" #include <Qpainter> #include <QDebug> #include <finder.h> finder robot; Next, in the MainWindow constructor, I try to connect the finder class signal and the slot from the MainWindow as follows:
connect(& robot, SIGNAL(redraw()), this, SLOT(update())); Tell me, how can I solve this problem?