This example shows how to register for a VR-Link interaction (in this case the comment interaction) and can pass that information to the GUI via an event signaler.
This example is an example of a protocol dependent example.
This example will show how to:
- Add a menu and menu item to the system
- Adds an accessory which will allow for interaction with the exercise connectipn
- Shows how to to send protocol specific data to the protocol independent side of the GUI via the network interface protocol
- Shows how to send a signal from the protocol independent GUI to the protocol dependent accessory to send the interaction
exampleMenu.h
#pragma once
{
public:
};
{
public:
protected:
protected:
};
exampleMenu.cxx
#include <QtWidgets/QMenu>
#include <QtWidgets/QAction>
using namespace makVrv;
:
DtMenu(de,
"DtCallbackMenu")
{
}
{
}
{
QMenu* menu =
new QMenu(QObject::tr(
"Network Callback"), parent);
return menu;
}
, myDe(de)
{
}
{
}
{
return new QAction(tr(
"Send Network Message"), parent);
}
{
}