Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qssgsceneedit_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSGSCENEEDIT_P_H
5#define QSSGSCENEEDIT_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3DAssetUtils/private/qtquick3dassetutilsglobal_p.h>
19#include <QtCore/QStringView>
20
22
23namespace QSSGSceneDesc {
24 struct Scene;
25 struct Node;
26 struct Property;
27}
28
29class QJsonObject;
30class QJsonValue;
31
32namespace QSSGQmlUtilities {
33
34void Q_QUICK3DASSETUTILS_EXPORT applyEdit(QSSGSceneDesc::Scene *scene, const QJsonObject &changes);
35void Q_QUICK3DASSETUTILS_EXPORT setProperty(QSSGSceneDesc::Node *node, const QStringView propertyName, const QJsonValue &value);
36QSSGSceneDesc::Node Q_QUICK3DASSETUTILS_EXPORT *addResource(QSSGSceneDesc::Scene *scene, const QJsonObject &addition);
37}
39
40#endif // QSSGSCENEEDIT_P_H
Definition lalr.h:136
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
\inmodule QtCore\reentrant
Definition qjsonvalue.h:25
\inmodule QtCore
Definition qstringview.h:78
void applyEdit(QSSGSceneDesc::Scene *scene, const QJsonObject &changes)
QSSGSceneDesc::Node * addResource(QSSGSceneDesc::Scene *scene, const QJsonObject &addition)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QGraphicsScene scene
[0]
args<< 1<< 2;QJSValue threeAgain=fun.call(args);QString fileName="helloworld.qs";QFile scriptFile(fileName);if(!scriptFile.open(QIODevice::ReadOnly)) QTextStream stream(&scriptFile);QString contents=stream.readAll();scriptFile.close();myEngine.evaluate(contents, fileName);myEngine.globalObject().setProperty("myNumber", 123);...QJSValue myNumberPlusOne=myEngine.evaluate("myNumber + 1");QJSValue result=myEngine.evaluate(...);if(result.isError()) qDebug()<< "Uncaught exception at line"<< result.property("lineNumber").toInt()<< ":"<< result.toString();QPushButton *button=new QPushButton;QJSValue scriptButton=myEngine.newQObject(button);myEngine.globalObject().setProperty("button", scriptButton);myEngine.evaluate("button.checkable = true");qDebug()<< scriptButton.property("checkable").toBool();scriptButton.property("show").call();QJSEngine engine;QObject *myQObject=new QObject();myQObject- setProperty)("dynamicProperty", 3)