E
E
Evgeny Ivanovich2015-06-07 18:36:21
Qt
Evgeny Ivanovich, 2015-06-07 18:36:21

How to correctly specify Signals/slots for this case?

In general, there are two classes, one defines a Slot, the other a signal. How to connect them correctly so that there are no errors?
Based on Qt 5.2.1 (GCC 4.8.2, 64 bit)
I haven't tried everything. If I put Q_OBJECT in both classes and inherit from QObject, the compiler swears on inheritance, if I leave it in only one class, then the compiler says that the signal was not found, what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DancingOnWater, 2015-06-07
@Pauk_Code

Qobject is a full-fledged class, so the errors that you have during the compilation process are solved by carefully reading the error into the text or googling it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question