Results 1 to 3 of 3

Thread: QPushbutton Right Click with customcontext menu sender inaccessible.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: QPushbutton Right Click with customcontext menu sender inaccessible.

    Its really hard to tell without seeing the code.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,332
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    317
    Thanked 871 Times in 858 Posts

    Default Re: QPushbutton Right Click with customcontext menu sender inaccessible.

    My problem is I am not able to access the sender to know which pushbutton is clicked.
    Unfortunately, even if you do find a way for the debugger to show you the sender, I think the sender might turn out to be the context menu, not the push button that responded to the click to post the menu.

    In any case, as high_flyer says, it is impossible to diagnose code problems with no code.
    <=== 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. Replies: 4
    Last Post: 11th January 2014, 03:06
  2. Replies: 0
    Last Post: 24th March 2013, 10:41
  3. Replies: 1
    Last Post: 18th May 2012, 11:36
  4. Using double click in QPushButton
    By nikbits in forum Newbie
    Replies: 1
    Last Post: 16th September 2011, 11:28
  5. QPushButton click
    By qutron in forum Newbie
    Replies: 2
    Last Post: 29th November 2010, 14:47

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.