aclock.h

来自「基于qte 2.3.7做的 趋势图控件」· C头文件 代码 · 共 43 行

H
43
字号
/****************************************************************************** $Id: qt/examples/aclock/aclock.h   2.3.7   edited 2001-01-26 $**** Copyright (C) 1992-2000 Trolltech 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 ACLOCK_H#define ACLOCK_H#include <qwidget.h>class Hwt_trend : public QWidget		// analog clock widget{    Q_OBJECTpublic:    Hwt_trend( QWidget *parent=0, const char *name=0 );    void runDemo( int t);    void setVol( float pvolt);protected:    void paintEvent( QPaintEvent *);    private slots:    void drawClock( QPainter* );    void	timeout();private:    long	c;    int		flag,demo;    float	volt;    float	point[30];    QPointArray  *pts;    QString s[4];};#endif // ACLOCK_H

⌨️ 快捷键说明

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