Dear all, Something like "if event.type == Qt::Event::KeyPress" only gives "warning: Object#type is deprecated; use Object#class", and does not work as expected. How to resolve this? Thanks.