Intercepting Tab key press to manage focus switching manually

前端 未结 4 1796
一向
一向 2020-12-16 22:58

I want to intercept Tab key press in my main window to prevent Qt from switching focus. Here\'s what I\'ve tried so far:



        
4条回答
  •  萌比男神i
    2020-12-16 23:13

    Reimplementing virtual bool QApplication::notify(QObject * receiver, QEvent * e) and pasting the code from my question there works.

提交回复
热议问题