Answer the question
In order to leave comments, you need to log in
How to implement connect in a separate class?
In the generated class (new .h) created a slot. I tried to connect it with a connection to the timer, which is declared in the same class, but without success.
\rounds.h:56: ошибка: no matching function for call to 'QObject::connect(QTimer*&, const char [11], CCClass* const, const char [14])'
QObject::connect(Timer, SIGNAL(timeout()), this, SLOT(Time()));
Answer the question
In order to leave comments, you need to log in
You need to inherit your class from the desired Qt class and add the Q_OBJECT macro.
class Round : public QDialog //или другой Qt класс
{
Q_OBJECT
//...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question