Qt 5.10 Book Examples
UdpClient.h
Go to the documentation of this file.
1 // ======================================================================
2 // UdpClient.h
3 // ======================================================================
4 // This file is a part of the book
5 // "Qt 5.10 Professional programming with C++"
6 // http://qt-book.com
7 // ======================================================================
8 // Copyright (c) 2017 by Max Schlee
9 // ======================================================================
10 
11 #pragma once
12 
13 #include <QTextEdit>
14 
15 class QUdpSocket;
16 
17 // ======================================================================
18 class UdpClient : public QTextEdit {
19 Q_OBJECT
20 private:
21  QUdpSocket* m_pudp;
22 
23 public:
24  UdpClient(QWidget* pwgt = 0);
25 
26 private slots:
27  void slotProcessDatagrams();
28 };
29 
UdpClient(QWidget *pwgt=0)
Definition: UdpClient.cpp:16