weatherstation.h
来自「c++ GUI Programming with QT4书中的源码」· C头文件 代码 · 共 36 行
H
36 行
#ifndef WEATHERSTATION_H#define WEATHERSTATION_H#include <QDialog>#include <QUdpSocket>class QLabel;class QLineEdit;class WeatherStation : public QDialog{ Q_OBJECTpublic: WeatherStation(QWidget *parent = 0);private slots: void processPendingDatagrams();private: QUdpSocket udpSocket; 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 + -
显示快捷键?