Project

General

Profile

Actions

Bug #4802

closed

WTimeEdit doesn't trigger signals when changing text from picker

Added by Julien Ladge about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
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!";
}
Actions #1

Updated by Koen Deforche about 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.

Actions #2

Updated by Koen Deforche almost 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF