[Development] Automatic signal-slot statistics
Olivier Goffart
olivier at woboq.com
Wed Aug 8 08:52:25 CEST 2018
On 2018-08-08 08:48, Taras Kushnir wrote:
> Hi Olivier
>
> Thanks for fast response.
>
> Sorry for asking trivial questions but I didn’t quite understand about “redeclaring” things in my project.
>
> As far as I understand all I need to do is pass an instance of [QSignalSpyCallbackSet] struct with my custom callbacks to [qt_register_signal_spy_callbacks], isn’t it? Can you please clarify “redeclaring”?
That's right, you just need to pass an instance of QSignalSpyCallbackSet.
Since you can't #include <qobject_p.h> as it is a private header, you can just
re-declare the relevant symbols. If you can include private headers, then
simply include qobject_p.h.
--
Olivier
More information about the Development
mailing list