?? weatherstation.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 + -