QT Event事件收集

时间:2021-03-27 00:28:22
//有时想要快速查找Qt事件的声明:故而,从源码中将它扣了出来哈!
 
 // Event handlers
 bool event(QEvent *event) Q_DECL_OVERRIDE;
 virtual void mousePressEvent(QMouseEvent *event);
 virtual void mouseReleaseEvent(QMouseEvent *event);
 virtual void mouseDoubleClickEvent(QMouseEvent *event);
 virtual void mouseMoveEvent(QMouseEvent *event);
#ifndef QT_NO_WHEELEVENT
 virtual void wheelEvent(QWheelEvent *event);
#endif
 virtual void keyPressEvent(QKeyEvent *event);
 virtual void keyReleaseEvent(QKeyEvent *event);
 virtual void focusInEvent(QFocusEvent *event);
 virtual void focusOutEvent(QFocusEvent *event);
 virtual void enterEvent(QEvent *event);
 virtual void leaveEvent(QEvent *event);
 virtual void paintEvent(QPaintEvent *event);
 virtual void moveEvent(QMoveEvent *event);
 virtual void resizeEvent(QResizeEvent *event);
 virtual void closeEvent(QCloseEvent *event);
#ifndef QT_NO_CONTEXTMENU
 virtual void contextMenuEvent(QContextMenuEvent *event);
#endif
#ifndef QT_NO_TABLETEVENT
 virtual void tabletEvent(QTabletEvent *event);
#endif
#ifndef QT_NO_ACTION
 virtual void actionEvent(QActionEvent *event);
#endif
 
#ifndef QT_NO_DRAGANDDROP
 virtual void dragEnterEvent(QDragEnterEvent *event);
 virtual void dragMoveEvent(QDragMoveEvent *event);
 virtual void dragLeaveEvent(QDragLeaveEvent *event);
 virtual void dropEvent(QDropEvent *event);
#endif
 
 virtual void showEvent(QShowEvent *event);
 virtual void hideEvent(QHideEvent *event);
 virtual bool nativeEvent(const QByteArray &eventType, void *message, long *result);
 
 // Misc. protected functions
 virtual void changeEvent(QEvent *);