weatherstation.h
来自「这里包含了一些QT的小例子,很有价值的,希望对大家有帮助」· C头文件 代码 · 共 37 行
H
37 行
#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 + =
减小字号Ctrl + -
显示快捷键?