Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]how can i respond to doubleClickItem withour respond to clickItem?
opengpu2 last edited by opengpu2
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.
koahnig last edited by
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.
alex_malyu last edited by
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..