Results 1 to 3 of 3

Thread: Differentiating single-clicks and double-clicks in a QTreeWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Differentiating single-clicks and double-clicks in a QTreeWidget

    You have to reimp QTreeView::mousePressEvent() and QTreeView::mouseDoubleClickEvent() yourself and emit e.g custom signals.

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

    adamb924 (22nd December 2010)

Similar Threads

  1. Replies: 3
    Last Post: 12th May 2010, 13:11
  2. QTabWidget: Shortcuts & Clicks
    By youkai in forum Qt Programming
    Replies: 7
    Last Post: 20th July 2009, 14:12
  3. Generating Mouse Clicks
    By Ebonair in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2009, 18:20
  4. How to handle double clicks with mouse?
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 14th January 2007, 12:01
  5. QTreeWidget, double-clicks and assertion errors
    By Byngl in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2006, 14:29

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.