Actions
Bug #4802
closedWTimeEdit doesn't trigger signals when changing text from picker
Start date:
03/10/2016
Due date:
% Done:
0%
Estimated time:
Description
When I change the time with only clicking on the picker (the popup), the time change in the lineEdit but there are no signal emitted(textInput, changed, blurred, focussed etc.)
The signal validated is emitted but sender() give a NULL pointer (so I cannot use it as I need data directly from WTimeEdit)
Wt::WTimeEdit * time = new Wt::WTimeEdit>();
time->setTime(Wt::WTime::fromString("16:00:00","hh:mm:ss"));
time->textInput().connect(this, &CurrentClass::timeChanged);
time->changed().connect(this, &CurrentClass::timeChanged);
time->clicked().connect(this, &CurrentClass::timeChanged); // understandable as the lineedit is not the picker
time->validated().connect(this, &CurrentClass::timeChanged);// useless but signal is emitted here
...
void CurrentClass::timeChanged()
{
qDebug() << "Time changed!";
}
Updated by Koen Deforche over 8 years ago
- Status changed from New to Resolved
- Target version set to 3.3.6
Hey, latest git version should fix this, as well as a slew of other issues that got resolved w.r.t. WTimeEdit.
Updated by Koen Deforche over 8 years ago
- Status changed from Resolved to Closed
Actions