I have a simple type declared as
typedef uint64_t Hash;
How can I use this type for the Qt signal/slot structure?
I have a simple type declared as
typedef uint64_t Hash;
How can I use this type for the Qt signal/slot structure?
Since your typedef
is of a fundamental type, there is nothing you have to do to use it for signals and slots (even queued connections work, although those break with the »old« string-based connect syntax).
In my tests (with Qt 5.8) I also didn’t have the issue described in this question.
If you use an older Qt5 version which still exhibits this, use the new connect syntax (without the SIGNAL
and SLOT
keywords).