Project

General

Profile

WCheckBox does not always update state

Added by Ulf Johnsson over 3 years ago

When clicking a WCheckBox anywhere that isnt the itself the checkbox will toggle

in the browser, but WCheckBox::isChecked() will not change unless you click somewere else

or move the mouse over the input field.

BR, Ulf Johnsson.


Replies (2)

RE: WCheckBox does not always update state - Added by Ulf Johnsson over 3 years ago

Im using Wt 4.3.1 on windows 10.

RE: WCheckBox does not always update state - Added by Wim Dumon over 3 years ago

Hello Ulf,

State updates of all widgets are sent back to the server on any event that sends a signal to the server.

I don't know how you organize your code (threads?), but if you check for the checkbox state in any signal handler of a signal that is triggered through the browser, the checkbox state should be updated.

Can you ideally provide a code example (modified version of hello.C) that demonstrates the problem?

BR,

Wim.

    (1-2/2)