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
qopenxrview.cpp File Reference

(131b045ba759bf8aeafb1fc68efcb1cf5842b68c)

#include "qopenxritem_p.h"
#include "qopenxrview_p.h"
#include <QQuickWindow>
#include <QQuickItem>
+ Include dependency graph for qopenxrview.cpp:

Go to the source code of this file.

Classes

struct  QOpenXRView::XrTouchState
 

Macros

#define Q_TOUCHPOINT_STATE(prop)   { QStringLiteral(#prop), QVariant::fromValue(it->prop) }
 \qmlmethod object XrView::touchpointState(int pointId)
 

Macro Definition Documentation

◆ Q_TOUCHPOINT_STATE

#define Q_TOUCHPOINT_STATE ( prop)    { QStringLiteral(#prop), QVariant::fromValue(it->prop) }

\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. Will be 0 if pressed is true. \endtable

Definition at line 444 of file qopenxrview.cpp.

Referenced by QOpenXRView::touchpointState().