📄 mousekeyevent.h
字号:
/************************************************************** **************
** $Id: /sample/6/mousekeyevent.h 2.3.2 edited 2004-10-12 $
**
** Copyright (C) 2004-2005 OURSELEC AS. All rights reserved.
** http://www.ourselec.com
** This file is part of an example program for Qt. This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/
#ifndef MOUSEKEYEVENT_H
#define MOUSEKEYEVENT_H
#include <qlabel.h>
#include <qevent.h>
#include <qstring.h>
class MouseKeyEvent: public QWidget
{
Q_OBJECT
public:
MouseKeyEvent( QWidget *parent=0, const char *name=0 );
protected:
void mousePressEvent( QMouseEvent* );
void mouseMoveEvent( QMouseEvent* );
void keyPressEvent( QKeyEvent* );
private:
QLabel *label;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -