Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dxrview.cpp File Reference

(9f23c13b34caef433af119c37490b10c772917ea)

#include "qtquick3dxrglobal_p.h"
#include "qquick3dxritem_p.h"
#include "qquick3dxrview_p.h"
#include <QQuickWindow>
#include <QQuickItem>
#include <QLoggingCategory>
#include <QtQuick3DUtils/private/qssgassert_p.h>
#include "qquick3dxrinputmanager_p.h"
Include dependency graph for qquick3dxrview.cpp:

Go to the source code of this file.

Classes

struct  QQuick3DXrView::XrTouchState

Macros

#define Q_TOUCHPOINT_STATE(prop)
 \qmlmethod object XrView::touchpointState(int pointId)

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY (lcQuick3DXr)

Macro Definition Documentation

◆ Q_TOUCHPOINT_STATE

#define Q_TOUCHPOINT_STATE ( prop)
Value:
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Definition qvariant.h:538
#define QStringLiteral(str)
Definition qstring.h:1826
QJSValueIterator it(object)

\qmlmethod object XrView::touchpointState(int pointId)

This method returns the state of the touch point with ID pointId. The state is represented by a map from property names to values:

\table \header

  • Key
  • Type
  • Description \row
  • grabbed
  • bool
  • Is the point grabbed by an item? If false, all other values are undefined. \row
  • target
  • XrItem
  • The item that is grabbing the touch point. \row
  • pressed
  • bool
  • Is the touch point pressed? \row
  • cursorPos
  • point
  • The 2D position of the touch point within target \row
  • touchDistance
  • real
  • The distance from the plane to the touch point. It will be 0 if pressed is true. \endtable

Definition at line 501 of file qquick3dxrview.cpp.

Function Documentation

◆ Q_DECLARE_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY ( lcQuick3DXr )