Skip to content
Permalink
Browse files
Merge pull request #6342 from spycrab/qt_rw_flicker
Qt/RenderWidget: Avoid flickering
  • Loading branch information
stenzek committed Jan 31, 2018
2 parents d04b179 + e599470 commit 987bec2
Showing 1 changed file with 6 additions and 0 deletions.
@@ -58,6 +58,12 @@ bool RenderWidget::event(QEvent* event)
QKeyEvent* ke = static_cast<QKeyEvent*>(event);
if (ke->key() == Qt::Key_Escape)
emit EscapePressed();

// The render window might flicker on some platforms because Qt tries to change focus to a new
// element when there is none (?) Handling this event before it reaches QWidget fixes the issue.
if (ke->key() == Qt::Key_Tab)
return true;

break;
}
case QEvent::MouseMove:

0 comments on commit 987bec2

Please sign in to comment.