ADTF Qt5
Loading...
Searching...
No Matches
adtf::javascript::scripting::cScriptQtSharedClient Class Reference

#include <interface_clients.h>

Inherits QObject.

Detailed Description

Interface client for adtf::ui::giant::IQtShared.

Example Usage

Using Qt Objects

import QtQuick 2.9
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0
Item
{
Component.onCompleted:
{
var qtshared = filter.createInterfaceClient("qtshared", "qtshared")
filter.connected.connect(function()
{
if (qtshared.connected)
{
testSharedComponent.createObject(qtshared.getObject())
}
})
}
Component
{
id: testSharedComponent
Rectangle
{
color: "red"
width: 50
height: 50
}
}
}

Providing Qt Objects

import QtQuick 2.9
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0
Item
{
// all you have to do is define this method
function getObject(name)
{
return layout
}
ColumnLayout {
id: layout
}
}

The documentation for this class was generated from the following file: