System: gentoo. Qt 4.6.2. Not using any display manager - just X server.

I try to get user input, but dialog doesn't react on keyboard, even can't close it by pressing Esc or Enter - only by mouse clicks.

Code:
Qt Code:
  1. bool ok;
  2. QString pwd = QInputDialog::getText(this, NULL, tr("Password:"), QLineEdit::Password, "", &ok);
  3. if( ok && !pwd.isEmpty() )
  4. {
  5. ...
  6. }
To copy to clipboard, switch view to plain text mode 

QApplication::focusWidget() remains parent of QInputDialog (guess it by logging) - is it common behavior?