qt ogl添加keyevent qt对ogl程序添加keyevent,一定要加上 以下两句:setFocusPolicy(Qt::StrongFocus);installEventFilter(parent)