I\'m trying to pass an enum as a value to a slot in my program, but I\'m having some problems. In my header file I\'ve created the enum:
Q_ENUMS(button_type);
e
You're passing the SLOT()
macro a value when it's expecting a type. More fundamentally this doesn't make much sense anyway as what you're struggling to achieve is to pass the slot a constant. Why not just use button_back
in the slot function directly?
You can define a slot which takes a button_type
value, but then you'd need to connect it to a signal that passes one as a parameter.
What are you actually trying to do?