Results 1 to 3 of 3

Thread: How can I show a popup when right mouse button is pressed?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    132
    Thanks
    67
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How can I show a popup when right mouse button is pressed?

    Hi mates!

    I create a popup menu using QMenu, and my UI have a QTableWidget.
    I'd like that if the user press right click over my QTableWidget, this popup shows.

    How should I do that?
    Using signals/slots, create a new object and rewrrite pressMouseButton...?

    Any advice?

    Thanks in advance.

  2. The following 2 users say thank you to ricardo for this useful post:


Similar Threads

  1. QSlider and right mouse button
    By Abnormalia in forum Qt Programming
    Replies: 4
    Last Post: 17th March 2009, 12:13
  2. Changing mouse grabbing behavior?
    By FlyingSaucrDude in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 01:04
  3. DragMode switching based on key & mouse button?
    By mooreaa in forum Qt Programming
    Replies: 1
    Last Post: 1st July 2008, 10:42
  4. problem about mouse button events
    By vql in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2008, 10:14
  5. Replies: 4
    Last Post: 4th February 2008, 06:16

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.