Results 1 to 5 of 5

Thread: QSpinBox Right-Click

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 8 Times in 4 Posts

    Default Re: QSpinBox Right-Click

    Sorry I misread his post. He could just connect this signal to a slot and ignore it, right?

  2. #2
    Join Date
    Sep 2008
    Location
    St. Louis, MO
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    4

    Default Re: QSpinBox Right-Click

    I am connected to editingFinished, since I want to do something when enter is pressed. In order to handle the SIGNAL as you suggest, I would need to know if it was triggered by a right-click. I considered setting a flag when the contextMenuEvent is called, but I wasn't sure the order (contextMenuEvent vs. editingFinished) could be guaranteed.

Similar Threads

  1. Double Click Capturing
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2011, 15:12
  2. Right click list - some advice ?
    By aurelius in forum Qt Programming
    Replies: 5
    Last Post: 27th January 2009, 08:04
  3. QGraphicsScene Click / Double Click
    By philentropist in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2007, 05:32
  4. QSpinBox with checkbox
    By :db:sStrong in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2007, 14:22
  5. Replies: 5
    Last Post: 12th January 2006, 16:40

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.