Results 1 to 2 of 2

Thread: QTableView Clicked and DoubleClicked not working properly ?

  1. #1
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default QTableView Clicked and DoubleClicked not working properly ?

    Hi All,

    When i just clicked on row or select any row it should do some functionality, and if i double click on any row it should do different thing , but some times even for double click also it's doing clicked signal functionality, it's not doing double click Functionality, is there a way to handle row selction and double click functionalities ?

  2. #2
    Join Date
    Jun 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTableView Clicked and DoubleClicked not working properly ?

    I'm guessing you're using QWidget's mousePressEvent and mouseDoubleClickEvent. You should use the AbstractItemView's clicked and doubleClicked signals.

Similar Threads

  1. Qt::WindowStaysOnTopHint not working properly
    By swarnika in forum Qt Programming
    Replies: 10
    Last Post: 13th April 2013, 07:33
  2. QMenu not working when clicked
    By qtnewbi3 in forum Qt Programming
    Replies: 2
    Last Post: 28th November 2011, 18:59
  3. memcpy not working properly
    By sattu in forum Qt Programming
    Replies: 3
    Last Post: 26th October 2010, 23:33
  4. Replies: 4
    Last Post: 10th December 2009, 14:54
  5. QTableView doubleclicked event not working
    By sgmurphy19 in forum Qt Programming
    Replies: 6
    Last Post: 15th March 2009, 10:00

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.