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:
bool ok;
if( ok && !pwd.isEmpty() )
{
...
}
bool ok;
QString pwd = QInputDialog::getText(this, NULL, tr("Password:"), QLineEdit::Password, "", &ok);
if( ok && !pwd.isEmpty() )
{
...
}
To copy to clipboard, switch view to plain text mode
QApplication::focusWidget() remains parent of QInputDialog (guess it by logging) - is it common behavior?
Bookmarks