counter.h

来自「gx 公司的2410-ep qt试验源代吗。 还有说明文档。」· C头文件 代码 · 共 29 行

H
29
字号
/****************************************************************************
** $Id: /sample/3/counter.h   2.3.2   edited 2004-10-12 $
**
** Copyright (C) 2004-2005 OURSELEC AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without 
limitation.
**
*****************************************************************************/
#ifndef COUNTER_H
#define COUNTER_H

#include <qlabel.h>

class Counter: public QWidget
{
	Q_OBJECT
public:
	Counter( QWidget *parent=0, const char *name=0 );
public slots:
	void IncCounter();
	void DecCounter();
private:
	int counter;
	QLabel *label;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?