Project

General

Profile

Bug #8602

No changed() signal when toggling a check box programmatically

Added by Georg Wenig about 1 year ago. Updated 4 months 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 about 1 year ago

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

#2

Updated by Korneel Dumon about 1 year ago

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

#3

Updated by Roel Standaert 12 months ago

  • Target version set to future

It's indeed not intended to be emitted by programmatic changes. None of the event signals are. We could amend the documentation to make that a bit more clear.

#4

Updated by Roel Standaert 7 months ago

  • Target version changed from future to 4.7.0
#5

Updated by Roel Standaert 4 months ago

  • Target version changed from 4.7.0 to 4.8.0

Also available in: Atom PDF