[SOLVED]how can i respond to doubleClickItem withour respond to clickItem?



  • how can i respond to doubleClickItem withour respond to clickItem?
    i found that when i double click the item, both the 2 slots are implemented....
    but i just want the slotDoubleClickItem implement.


  • Moderators

    @opengpu2
    Yes. You can basically choose the signals you want to use. If you connect only to the doubleClick signal and not to the clicked signal, you are ignoring the single click signal.



  • single click always happen before double click.
    There is no way to avoid this,
    If you action are incompatible you may try to use timer to postpone action you want to executed to be postponed until it is clear double click is not going to happen, but it is better to find another way to recognize which action to be executed..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.