Dear Friends,
I need to filter Esc key in Dialogs, i had reimplemented keyPressEvent(QKeyEvent *) just below,
but its not working
{
if(e->key()==Qt::Key_Escape)
{
e->ignore();
}
else
{
}
}
void myCLass::keyPressEvent(QKeyEvent *e)
{
if(e->key()==Qt::Key_Escape)
{
e->ignore();
}
else
{
QDialog::keyPressEvent(e);
}
}
To copy to clipboard, switch view to plain text mode
i have set Focus Policy in my dialog object
win->setFocusPolicy(Qt::StrongFocus);
win = new QDialog(this);
win->setFocusPolicy(Qt::StrongFocus);
To copy to clipboard, switch view to plain text mode
can any body help me t o fix this problem
Bookmarks