⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 weatherstation.h

📁 qt3.8开发的例子, 做linux下qt编程可以参考
💻 H
字号:
#ifndef WEATHERSTATION_H#define WEATHERSTATION_H#include <qdialog.h>#include <qsocketdevice.h>class QLabel;class QLineEdit;class QSocketNotifier;class WeatherStation : public QDialog{    Q_OBJECTpublic:    WeatherStation(QWidget *parent = 0, const char *name = 0);private slots:    void dataReceived();private:    QSocketDevice socketDevice;    QSocketNotifier *socketNotifier;    QLabel *dateLabel;    QLabel *timeLabel;    QLabel *temperatureLabel;    QLabel *humidityLabel;    QLabel *altitudeLabel;    QLineEdit *dateLineEdit;    QLineEdit *timeLineEdit;    QLineEdit *temperatureLineEdit;    QLineEdit *humidityLineEdit;    QLineEdit *altitudeLineEdit;};#endif

⌨️ 快捷键说明

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