Added an example for PyQt5 (#389)
* added pyqt5 example * fixed example path on build * improved pyqt example * simplified example
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef WIDGET_H
|
||||
#define WIDGET_H
|
||||
|
||||
#include <qtermwidget5/qtermwidget.h>
|
||||
|
||||
class QTcpSocket;
|
||||
|
||||
class RemoteTerm : public QTermWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
RemoteTerm(const QString &ipaddr, quint16 port, QWidget *parent = 0);
|
||||
public slots:
|
||||
void atError();
|
||||
private:
|
||||
QTcpSocket *socket;
|
||||
};
|
||||
|
||||
#endif // WIDGET_H
|
||||
Reference in New Issue
Block a user