M
M
maaGames2021-12-15 17:18:57
Qt
maaGames, 2021-12-15 17:18:57

QComboBox edit list without signals?

There are several comboboxes with lists of the same values. We need to dynamically change the contents of these lists, but in a way that does not send the currentIndexChanged signal, because changing the selection in the list changes a bunch of other fields in the dialog. If I do clear followed by Add / Inert, then this signal is sent. Saving the selection in the combobox and then restoring it does not help, because By this time, the data has already been corrupted ...

Is it possible to somehow prohibit sending signals without constant disconnect / connect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2021-12-15
@maaGames

QSignalBlocker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question