Results 1 to 2 of 2

Thread: inconsistant doubleclick edit behavior with qtableview

  1. #1
    Join Date
    Jun 2012
    Posts
    25
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X

    Question inconsistant doubleclick edit behavior with qtableview

    A QTableView is not sending it's doubleClicked signal every time it is double clicked...the behavior is erratic. Sometimes it will work a few times in a row, sometimes it won't work at all or perhaps every other time. I have a QItemDelegate::createEditor method, and I'm using EditTrigger:oubleClick as an edit trigger for the view.

    I put print statements in the createEditor method and a method I connect the doubleClicked signal to and they confirm createEditor is only invoked when doubleClicked is sent, however that signal is just not being sent, therefor the mouse event is either being ignored or is not being caught by the right object.

    I installed an event filter on the view and its parent just to put a print statement it...nothing prints.

    Looking for advice on how to proceed troubleshooting this. Many Thanks.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: inconsistant doubleclick edit behavior with qtableview

    Post a small, self-contained, compilable program that demonstrates the problem.

Similar Threads

  1. QTableView line edit clears the text on edit
    By PlasticJesus in forum Qt Programming
    Replies: 5
    Last Post: 14th March 2015, 19:06
  2. Replies: 1
    Last Post: 15th February 2012, 13:37
  3. Replies: 4
    Last Post: 21st August 2011, 20:38
  4. QTableView crashes after doubleclick
    By nickla in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2011, 19:22
  5. QTimeEdit / QDateEdit doubleclick behavior
    By osiris81 in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2009, 17:28

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.