FlightGear
next
FGQmlInstance.hxx
Go to the documentation of this file.
1
#ifndef FGQMLINSTANCE_HXX
2
#define FGQMLINSTANCE_HXX
3
4
#include <QObject>
5
6
#include <QJSValue>
7
8
// forward decls
9
class
FGQmlPropertyNode
;
10
11
class
FGQmlInstance
:
public
QObject
12
{
13
Q_OBJECT
14
public
:
15
explicit
FGQmlInstance
(QObject *parent =
nullptr
);
16
17
Q_INVOKABLE
bool
command
(QString
name
, QJSValue args);
18
22
Q_INVOKABLE
FGQmlPropertyNode
*
property
(QString path,
bool
create =
false
)
const
;
23
signals:
24
25
public
slots:
26
};
27
28
#endif
// FGQMLINSTANCE_HXX
FGQmlInstance::property
Q_INVOKABLE FGQmlPropertyNode * property(QString path, bool create=false) const
retrieve a property by its global path
Definition
FGQmlInstance.cxx:97
FGQmlInstance::FGQmlInstance
FGQmlInstance(QObject *parent=nullptr)
Definition
FGQmlInstance.cxx:70
FGQmlPropertyNode
Definition
FGQmlPropertyNode.hxx:36
command
SGCommandMgr::command_t command
Definition
fg_commands.cxx:1137
name
const char * name
Definition
fg_commands.cxx:1136
src
GUI
FGQmlInstance.hxx
Generated on Tue Jun 3 2025 12:58:39 for FlightGear by
1.13.2