Bug #2233
closedsetFocus() for WLineEdit (contained in a WDialog) doesn't set the focus
0%
Description
I used in a previous wt version an dialog like the example below. When the dialog was shown, the WLineEdit widget got the focus. With the update to wt-3.3.1-rc1 this doesn't work anymore.
MyDialog::MyDialog()
{
WLineEdit *nameEdit = new WLineEdit(contents());
WLineEdit *passwordEdit = new WLineEdit(contents());
passwordEdit->setEchoMode(WLineEdit::Password);
passwordEdit->setFocus();
WPushButton *okButton = new WPushButton(tr("Wt.WMessageBox.Ok"),footer());
WPushButton *cancelButton = new WPushButton(tr("Wt.WMessageBox.Cancel"),footer());
okButton->clicked().connect(this, &WDialog::accept);
cancelButton->clicked().connect(this, &WDialog::reject);
}
Seems to me as a bug or is my code wrong?
Updated by Koen Deforche over 11 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.3.1
Hey,
This is a bug in rc1 that has been fixed since. We expect this and other improvements in a RC2 very soon.
Regards,
koen
Updated by Koen Deforche about 11 years ago
- Status changed from Resolved to Closed