Results 1 to 4 of 4

Thread: how to trigger context menu actions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to trigger context menu actions

    The actions objects have a "triggered()" signal.

    I am not using PyQt myself but I think connect works something like
    Qt Code:
    1. self.actionReadRegister.triggered.connect(self.someMethod);
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    flashburn (20th September 2016)

Similar Threads

  1. pop up menu cannot trigger on qtwebkit
    By horoma in forum Qt Programming
    Replies: 0
    Last Post: 15th December 2012, 04:28
  2. Replies: 6
    Last Post: 20th July 2012, 22:50
  3. Adding actions to a context menu
    By aarelovich in forum Qt Programming
    Replies: 4
    Last Post: 7th December 2011, 12:47
  4. Replies: 1
    Last Post: 4th November 2011, 11:25
  5. Trigger Menu on Mouse Tap.
    By QTWarrior in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2010, 21:27

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.