Results 1 to 2 of 2

Thread: Push Button Right Click implementation

  1. #1
    Join Date
    Jan 2018
    Qt products
    Qt3 Qt4 Qt5

    Question Push Button Right Click implementation

    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.

  2. #2
    Join Date
    Jan 2008
    Alameda, CA, USA
    Thanked 588 Times in 578 Posts
    Qt products
    Unix/X11 Windows Android

    Default Re: Push Button Right Click implementation

    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.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. push button
    By arumita in forum Newbie
    Replies: 1
    Last Post: 3rd June 2014, 01:02
  2. Images is not being set on the push button
    By Charvi in forum Qt Programming
    Replies: 5
    Last Post: 7th July 2012, 09:28
  3. Hareware Push Button
    By mickeyk191 in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 12:41
  4. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.