Project

General

Profile

Bug #8602

No changed() signal when toggling a check box programmatically

Added by Georg Wenig 21 days ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/28/2021
Due date:
% Done:

0%

Estimated time:

Description

The documentation of the signals returned WAbstractToolButton::checked() und WAbstractToolButton::unChecked() clearly states that these signals are only emitted when the user checks the button. But the same documentation also promises "You can use the changed() signal to react to any change of the button state".

However, this signal is not emitted when toggling a check box programmatically (see minimal example attached).


Files

main_checkbox.cpp (1.44 KB) main_checkbox.cpp Minimal example code Georg Wenig, 05/28/2021 02:44 PM
#1

Updated by Georg Wenig 21 days ago

Additional info: Wt version 4.5.0 on Ubuntu 20.04.1 on WSL2 in Win10

#2

Updated by Korneel Dumon 21 days ago

I think "any" in this context refers to both checked and unchecked.

Also available in: Atom PDF