Qt 5.10 Book Examples
UdpServer.h
Go to the documentation of this file.
1 // ======================================================================
2 // UdpServer.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 UdpServer : public QTextEdit {
19 Q_OBJECT
20 private:
21  QUdpSocket* m_pudp;
22 
23 public:
24  UdpServer(QWidget* pwgt = 0);
25 
26 private slots:
27  void slotSendDatagram();
28 };
29 
UdpServer(QWidget *pwgt=0)
Definition: UdpServer.cpp:16