Hahaha
I could build up a MWE if necessary.
can I still get the un-vague answer?
The QWidget's keypressed:
void ProjectForm
::keyReleaseEvent(QKeyEvent *e
) {
if(e->key() == Qt::Key_Q)
addWaypoint();
else if(e->key() == Qt::Key_L)
{
ui->lineView->setFocus();
}
e->ignore();
//e->accept();
}
void ProjectForm::keyReleaseEvent(QKeyEvent *e)
{
if(e->key() == Qt::Key_Q)
addWaypoint();
else if(e->key() == Qt::Key_L)
{
ui->lineView->setFocus();
}
e->ignore();
//e->accept();
}
To copy to clipboard, switch view to plain text mode
Is that enough information?
...oooooorrr how do I delay the focus?
Added after 17 minutes:
SO I did a MWE and couldn't reproduce the issue (!) so I guess I'm using the event twice or something.
Nevermind, I don't know if I changed something, but it ain't happening anymore.
Bookmarks