mousekeyevent.h
来自「gx 公司的2410-ep qt试验源代吗。 还有说明文档。」· C头文件 代码 · 共 32 行
H
32 行
/************************************************************** **************
** $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 + =
减小字号Ctrl + -
显示快捷键?