PDA

View Full Version : Push Button Right Click implementation



RSK
11th January 2018, 12:22
New to Qt. I want to add right click to pushbutton which already handling left click. I tried using customContextMenurequested policy and connecting to signal customcontextmenu using manual coding without designer. When I use designer it works, but using coding manually it does not work. I am not finding any difference in file with both. As I need to code manually for my requirement what is additionally needed to do to work right click of push button. I want to connect method not menu to right click.

d_stranz
11th January 2018, 17:33
but using coding manually it does not work
My darn crystal ball isn't working today. If it was, I could look at the invisible code you posted and maybe give you some help about what you might be doing wrong. Sorry.