source: ogBrowser-Git/qtermwidget/examples/cpp/RemoteTerm/main.cpp @ 9004d96

jenkinsmain
Last change on this file since 9004d96 was 64efc22, checked in by Vadim Troshchinskiy <vtroshchinskiy@…>, 20 months ago

Update qtermwidget to modern version

  • Property mode set to 100644
File size: 511 bytes
Line 
1#include "remoteterm.h"
2#include <QApplication>
3#include <QDebug>
4
5int main(int argc, char *argv[])
6{
7    QApplication a(argc, argv);
8    if(a.arguments().size() != 3){
9        qDebug() << "Example(client-side) for remote terminal of QTermWidget.";
10        qDebug() << QString("Usage: %1 ipaddr port").arg(a.arguments()[0]);
11        return 1;
12    }
13    QString ipaddr = a.arguments().at(1);
14    quint16 port = a.arguments().at(2).toUShort();
15    RemoteTerm w(ipaddr,port);
16    w.show();
17
18    return a.exec();
19}
Note: See TracBrowser for help on using the repository browser.