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
qt3dxr-apple-vision-pro-quick-start.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2024 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
/*!
4
\page qt3dxr-quick-start-guide-applevisionpro.html
5
\title Getting Started With Apple Vision Pro
6
7
\brief This topic provides instructions on how to get up and running
8
with \qxr on a visionOS device or simulator.
9
10
\section1 Introduction
11
12
This guide will get you started developing applications for \tm visionOS.
13
14
Before starting, it is crucial to understand that there are two ways to develop applications
15
for visionOS. The first method we'll refer to produces "low-immersion" applications. These
16
applications can be developed as any regular iPad/iOS application and deployed to visionOS,
17
these applications run in windowed mode and look like a regular iPad application
18
floating in your VR environment.
19
20
\note visionOS specific applications can also be placed in the \e low-immersion mode and will
21
essentially work the same as an iPad/iOS application.
22
23
We'll refer to the second method as producing \e high-immersion applications. These applications
24
are developed using the visionOS SDK and are run in "full screen" mode, meaning QtQuick3D takes
25
complete control of the rendering, with some exceptions (Like pass-through video of the hands).
26
27
\note visionOS supports applications transitioning between these two states, but this is not
28
supported by QtQuick3D.Xr.
29
30
\note Developing for visionOS requires Apple hardware with Apple Silicon.
31
32
\note There is no binary build of Qt for visionOS. You will need to build Qt from source. See
33
\l{Building Qt for visionOS} for more information.
34
35
\section1 Deploying a low-immersion application
36
37
To deploy an iPad/iOS application to visionOS, build and deploy the application as you
38
would normally for \l {Qt for iOS}{iOS/iPad}.
39
40
\section1 Building Qt for visionOS
41
42
To build Qt for visionOS, you will need the Qt source code with Qt Quick3D; see \l {Building
43
Qt Sources} for more information on getting the source code.
44
45
\section2 Configuring and building for the simulator
46
47
A minimal configure command for building Qt for the visionOS simulator would look like this:
48
49
\badcode
50
[QT_SOURCE_DIR]/configure -qt-host-path [PATH_TO_QT_HOST_BUILD] -platform macx-visionos-clang -sdk xrsimulator -submodules qtquick3d
51
\endcode
52
53
After configuring, you can build using your build tool, for example, CMake.
54
55
\section2 Configuring and building for the device
56
57
A minimal configure command for building Qt for the visionOS device would look like this:
58
59
\badcode
60
[QT_SOURCE_DIR]/configure -qt-host-path [PATH_TO_QT_HOST_BUILD] -platform macx-visionos-clang -sdk xros -submodules qtquick3d
61
\endcode
62
63
After configuring, you can build using your build tool.
64
65
\section2 Deploying a visionOS application
66
67
To deploy a visionOS application, you will need Xcode with the visionOS SDK
68
components installed and, optionally, the visionOS simulator.
69
See \l{visionOS_supported_versions}{supported versions} for more information.
70
71
\note Unlike the iOS/iPad applications, visionOS applications are not deployed using
72
\QC, but instead using Xcode.
73
74
To build one of Qt's examples for visionOS, you can use the following command:
75
76
\badcode
77
[QT_VISIONOS_BUILD]/bin/qt-cmake -B [EXAMPLE_BUILD_DIR] -S [EXAMPLE_SOURCE_DIR]
78
\endcode
79
80
Running this command produces an Xcode project that you can open in Xcode and deploy to the device.
81
82
*/
qtquick3d
src
quick3d
doc
src
xr
qt3dxr-apple-vision-pro-quick-start.qdoc
Generated on
for Qt by
1.14.0