QSignalSpy a QHash signal
Hello,
I am trying to test a signal using QSignalSpy. The signal being emitted is of type QHash<int,int>. I am having issues during the construction of the QSignalSpy object. The warning says "Unable to handle parameter ' ' of type QHash<int,int> of method ...
I have looked into qregistermetatype, but from the documentation it says you only need to register the metatype if it is not known, and I believe that int(s) are a known metatype.
If anyone could point me in the right direction in regards to testing a signal that is emitting a QHash please let me know.
Thank you.
Re: QSignalSpy a QHash signal
Int is, but QHash<int,int> probably isnt. You have to do qRegistermetaType<QHash<int,int>>().
Generally, always shows code + full error message.
Re: QSignalSpy a QHash signal
Got it,
Thank you for your help.