I want to use right click of push button. I am connecting Custommenurequested signal with the slot. Signal is generated and slot is triggered. My problem is I am not able to access the sender to know which pushbutton is clicked. My connection is done in one class and event is generated in another class. My slot is present in same class where connection is done. While debugging in slot it says sender not accessible.
I tried to put the slot in the class where the signal is generated. In that case linker error says receiver not found in current object and slot is not triggered.
How this can be solved? Either access the sender from another class or connecting to slot from another class.
Bookmarks