Results 1 to 2 of 2

Thread: itemDoubleClicked - QTreeWidgetItem

  1. #1
    Join Date
    May 2009
    Posts
    94
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Post itemDoubleClicked - QTreeWidgetItem

    The itemDoubleClicked () signal is working, when user doubleclicked left mouse button as well as right mouse button and scroll button double clicked in the run time.
    How can i restrict this. I want this function should work only on left mouse button double clicked.

    Suggest me any idea or any function available.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: itemDoubleClicked - QTreeWidgetItem

    Reimplement mouseDoubleClickEvent() for the view and call the base class implementation only if the left mouse button caused the event (you have such information in the event object available).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. itemDoubleClicked and itemClicked
    By miraks in forum Qt Programming
    Replies: 8
    Last Post: 8th August 2008, 16:52
  2. py qt newbie itemDoubleClicked?
    By gateway in forum Qt Programming
    Replies: 3
    Last Post: 12th January 2008, 02:04
  3. QTreeWidget::itemDoubleClicked
    By sabeesh in forum Newbie
    Replies: 2
    Last Post: 20th August 2007, 11:30
  4. QTreeWidgetItem ?
    By allensr in forum Qt Programming
    Replies: 5
    Last Post: 3rd January 2007, 17:51
  5. QTreeWidgetItem
    By raphaelf in forum Qt Programming
    Replies: 4
    Last Post: 5th March 2006, 15:07

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.