"single left click " on the QListWidget "item" runs BOTH slots
-
Using "go to slot " I have optioned QtDesigner and the result of "single left click " on the QListWidget "item" runs BOTH slots.
Here is my debug output :
void DeviceDiscoveryDialog::on_list_currentTextChanged(const QString &) TASK TRACE DEBUG pair selection @ line "927" void DeviceDiscoveryDialog::on_list_itemSelectionChanged() TASK pair selection @ line "912"I desire to run specific code - Bluetooth pairing - and it really does not matter which SIGNAL is generated.
I am asking - is there a way - using QtDesigner - to distinguish he between " left click" on the "list" item
and "highlight item selection " on same "list" item ? -
The list issues both signals because both conditions have occurred (probably also issued currentItemChanged(), currentRowChanged() and itemClicked()).
If you only want to act on one then only connect to one.
The current item and the current selection are not the same thing in general. You can turn off/adjust tracking the selection with setSelectionMode()