Project

General

Profile

Actions

Bug #8602

closed

No changed() signal when toggling a check box programmatically

Added by Georg Wenig almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
05/28/2021
Due date:
% Done:

100%

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
Actions #1

Updated by Georg Wenig almost 3 years ago

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

Actions #2

Updated by Korneel Dumon almost 3 years ago

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

Actions #3

Updated by Roel Standaert almost 3 years 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.

Actions #4

Updated by Roel Standaert over 2 years ago

  • Target version changed from future to 4.7.0
Actions #5

Updated by Roel Standaert about 2 years ago

  • Target version changed from 4.7.0 to 4.8.0
Actions #6

Updated by Roel Standaert almost 2 years ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
Actions #7

Updated by Roel Standaert almost 2 years ago

  • Status changed from InProgress to Review
  • Assignee deleted (Roel Standaert)
Actions #8

Updated by Roel Standaert almost 2 years ago

  • Status changed from Review to Implemented @Emweb
Actions #9

Updated by Roel Standaert almost 2 years ago

  • % Done changed from 0 to 100
Actions #10

Updated by Roel Standaert almost 2 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #11

Updated by Roel Standaert almost 2 years ago

  • Assignee set to Roel Standaert
Actions #12

Updated by Roel Standaert almost 2 years ago

  • Target version changed from 4.8.0 to 4.7.3
Actions #13

Updated by Roel Standaert almost 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF