weatherballoon.h
来自「这里包含了一些QT的小例子,很有价值的,希望对大家有帮助」· C头文件 代码 · 共 26 行
H
26 行
#ifndef WEATHERBALLOON_H#define WEATHERBALLOON_H#include <qpushbutton.h>#include <qsocketdevice.h>class WeatherBalloon : public QPushButton{ Q_OBJECTpublic: WeatherBalloon(QWidget *parent = 0, const char *name = 0); double temperature() const; double humidity() const; double altitude() const;protected: void timerEvent(QTimerEvent *event);private: QSocketDevice socketDevice; int myTimerId;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?