File: main.cpp

package info (click to toggle)
qt6-remoteobjects 6.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,812 kB
  • sloc: cpp: 20,894; sh: 29; makefile: 26
file content (18 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2017 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <QCoreApplication>
#include <QRemoteObjectNode>

#include "../../shared/testutils.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QObject remotedObject;
    remotedObject.setObjectName(QStringLiteral("connectme"));
    QRemoteObjectHost node(QUrl(QStringLiteral(LOCAL_SOCKET ":crashMe")));
    node.enableRemoting(&remotedObject);

    return a.exec();
}