Q3DSQmlStream Class

Allows streaming of QML as subpresentation. More...

Header: #include <Q3DSQmlStream>
Since: Qt 3D Studio 2.0
Instantiated By: QmlStream
Inherits: QObject

Properties

  • 1 property inherited from QObject

Public Functions

Q3DSQmlStream(QObject *parent = nullptr)
virtual ~Q3DSQmlStream()
QQuickItem *item() const
QString presentationId() const
  • 31 public functions inherited from QObject

Public Slots

void setItem(QQuickItem *item)
void setPresentationId(const QString presentationId)
  • 1 public slot inherited from QObject

Signals

void itemChanged(QQuickItem *item)
void presentationIdChanged(const QString presentationId)

Static Public Members

const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

  • 9 protected functions inherited from QObject

Detailed Description

Allows streaming of QML as subpresentation.

Property Documentation

item : QQuickItem*

Contains the QQuickItem to be streamed as subpresentation.

Note: The Item width and height will be scaled up to the nearest divisible-by-four number to avoid rendering artefacts. If you wish to have pixel perfect outcome, define your QML stream items to use size that already has dimensions that are divisible by four.

Access functions:

QQuickItem *item() const
void setItem(QQuickItem *item)

Notifier signal:

void itemChanged(QQuickItem *item)

presentationId : QString

Contains the presentation id of this subpresentation.

Access functions:

QString presentationId() const
void setPresentationId(const QString presentationId)

Notifier signal:

void presentationIdChanged(const QString presentationId)

Member Function Documentation

Q3DSQmlStream::Q3DSQmlStream(QObject *parent = nullptr)

Constructs a Q3DSQmlStream object with parent as parent.

[virtual] Q3DSQmlStream::~Q3DSQmlStream()

Destroys the instance of Q3DSQmlStream. The destructor is virtual.