Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGIS Runtime SDK for Qt

Open a scene (portal item)

Sample Viewer View Sample on GitHub

Open a web scene from a portal item.

Use case

A scene is symbolized geospatial content that allows you to visualize and analyze geographic information in an intuitive and interactive 3D environment. Web scenes are an ArcGIS format for storing scenes in ArcGIS Online or portal. Scenes can be used to visualize a complex 3D environment like a city.

How to use the sample

When the sample opens, it will automatically display the scene from ArcGIS Online. Pan and zoom to explore the scene.

How it works

To open a web scene from a portal item:

  1. Create a PortalItem with an item ID pointing to a web scene.
  2. Create an Scene passing in the portal item.
  3. Set the scene to a SceneView to display it.

Relevant API

  • Scene
  • PortalItem
  • SceneView

About the data

This sample uses a Geneva, Switzerland Scene hosted on ArcGIS Online.


portal, scene, web scene

Sample Code

import QtQuick 2.6
import Esri.ArcGISRuntime 100.9

Rectangle {
    id: rootRectangle
    clip: true
    width: 800
    height: 600

    // declare a SceneView
    SceneView {
        anchors.fill: parent

        // Declare a Scene
        Scene {
            // Declare a PortalItem by setting Item ID.
            // PortalItem is a default property of Scene
            PortalItem {
                itemId: "c6f90b19164c4283884361005faea852"