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
10
11class FGQmlInstance : public QObject
12{
13 Q_OBJECT
14public:
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;
23signals:
24
25public slots:
26};
27
28#endif // FGQMLINSTANCE_HXX
Q_INVOKABLE FGQmlPropertyNode * property(QString path, bool create=false) const
retrieve a property by its global path
FGQmlInstance(QObject *parent=nullptr)
SGCommandMgr::command_t command
const char * name