Project

General

Profile

Actions

Bug #2233

closed

setFocus() for WLineEdit (contained in a WDialog) doesn't set the focus

Added by Andreas Büchin about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/18/2013
Due date:
% Done:

0%

Estimated time:

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?

Actions #1

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

Actions #2

Updated by Koen Deforche about 11 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF