Results 1 to 2 of 2

Thread: doubleclick with tableview reacts only once

  1. #1
    Join Date
    Jul 2009
    Posts
    92
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default doubleclick with tableview reacts only once

    I have a QtableView (called fileView) linked to a QFileSystemModel. The double click event is linked to a function that selects the file and does something with it

    connect(fileView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(selectFiles(QModelIndex)));

    the first time I doubleclick this works fine. Then the second time the double click nothing happens! When debugging it seems the signal is not transmitted, at least I do not end up in the function selectFiles
    Do I have to reset the nsignal or something?

    trhanks

  2. #2
    Join Date
    Jul 2009
    Posts
    92
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: doubleclick with tableview reacts only once

    sorry, my own fault, messed up the code

Similar Threads

  1. QTimeEdit / QDateEdit doubleclick behavior
    By osiris81 in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2009, 17:28
  2. Replies: 0
    Last Post: 20th May 2009, 10:01
  3. tableview
    By GuL in forum Newbie
    Replies: 1
    Last Post: 26th August 2008, 17:18
  4. Prevent docking on doubleclick
    By yartov in forum Qt Programming
    Replies: 3
    Last Post: 24th June 2008, 20:46
  5. [QT4 & XP] doubleClick on QtreeView
    By incapacitant in forum Newbie
    Replies: 2
    Last Post: 2nd March 2006, 12:15

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.