weatherballoon.h
来自「c++ GUI Programming with QT4书中的源码」· C头文件 代码 · 共 28 行
H
28 行
#ifndef WEATHERBALLOON_H#define WEATHERBALLOON_H#include <QPushButton>#include <QTimer>#include <QUdpSocket>class WeatherBalloon : public QPushButton{ Q_OBJECTpublic: WeatherBalloon(QWidget *parent = 0); double temperature() const; double humidity() const; double altitude() const;private slots: void sendDatagram();private: QUdpSocket udpSocket; QTimer timer;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?