Visualize point cloud data using different renderers and filters.

Use case
Point clouds contain large collections of 3D points captured by sensors such as lidar. Each point can include attributes that describe its color, elevation, classification, return, and other properties. Applying renderers and filters to these attributes can reveal patterns in the data and isolate points of interest, such as buildings or vegetation.
How to use the sample
The sample initially displays a point cloud layer using its RGB values. Select a renderer to visualize the points by RGB color, elevation, or LAS classification code.
Use the point size control to increase or decrease the size of the rendered points. Point size is a property of the renderer’s splat algorithm.
Use the filter controls to show points that match selected classification codes, lidar return types, and scan direction flag values. Multiple filters can be applied at the same time. Clear an individual filter to remove it from the point cloud layer.
How it works
- Create a
PointCloudLayerwith the Sonoma Area 1 point cloud scene layer URL and add it to a scene’s operational layers. - Create the following point cloud renderers:
- Create a
PointCloudRgbRendererusing theRGBattribute. - Create a
PointCloudStretchRendererusing theELEVATIONattribute and threePointCloudColorStopobjects distributed across the elevation range. - Create a
PointCloudClassBreaksRendererusing theELEVATIONattribute and threePointCloudColorClassBreakobjects distributed across the elevation range. - Create a
PointCloudUniqueValueRendererusing theCLASS_CODEattribute andPointCloudColorUniqueValueobjects for classification values 1 through 18.
- Create a
- Set a
PointCloudSplatAlgorithmon each renderer and set itspointsPerInchproperty to25. - Set the selected renderer on the point cloud layer’s
rendererproperty. ThePointCloudRgbRendererwe constructed is applied initially. - Create the following point cloud filters:
- Create a
PointCloudValueFilterusing theCLASS_CODEattribute and the selected classification values and the selected include or exclude mode. - Create a
PointCloudReturnFilterusing theRETURNSattribute and the selected return types. - Create a
PointCloudBitfieldFilterusing theFLAGSattribute and the selected required set and clear values for scan direction flag bit 6.
- Create a
- Add, update, or remove each filter independently in the point cloud layer’s
filterscollection as its selections change. The collection is initially empty.
Relevant API
- PointCloudBitfieldFilter
- PointCloudClassBreaksRenderer
- PointCloudColorClassBreak
- PointCloudColorStop
- PointCloudColorUniqueValue
- PointCloudLayer
- PointCloudReturnFilter
- PointCloudRgbRenderer
- PointCloudSplatAlgorithm
- PointCloudStretchRenderer
- PointCloudUniqueValueRenderer
- PointCloudValueFilter
About the data
This sample uses the Sonoma Area 1 LiDAR RGB point cloud scene layer. The layer provides the RGB, ELEVATION, CLASS_CODE, RETURNS, and FLAGS attributes used by the renderers and filters.
Tags
3D, classification, filter, lidar, point cloud, renderer, scene layer, visualization
Sample code
// [WriteFile Name=ApplyPointCloudRendererAndFilter, Category=Scenes]// [Legal]// Copyright 2026 Esri.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.// [Legal]
#ifdef PCH_BUILD#include "pch.hpp"#endif // PCH_BUILD
// sample headers#include "ApplyPointCloudRendererAndFilter.h"
// ArcGIS Maps SDK headers#include "ArcGISTiledElevationSource.h"#include "ElevationSourceListModel.h"#include "Envelope.h"#include "LayerListModel.h"#include "LocalSceneQuickView.h"#include "MapTypes.h"#include "PointCloudBitfieldFilter.h"#include "PointCloudClassBreaksRenderer.h"#include "PointCloudColorClassBreak.h"#include "PointCloudColorStop.h"#include "PointCloudColorUniqueValue.h"#include "PointCloudFilterListModel.h"#include "PointCloudLayer.h"#include "PointCloudReturnFilter.h"#include "PointCloudRgbRenderer.h"#include "PointCloudSplatAlgorithm.h"#include "PointCloudStretchRenderer.h"#include "PointCloudTypes.h"#include "PointCloudUniqueValueRenderer.h"#include "PointCloudValueFilter.h"#include "PortalItem.h"#include "Scene.h"#include "SceneViewTypes.h"#include "Surface.h"#include "Viewpoint.h"
// Qt headers#include <QColor>#include <QQmlEngine>#include <QUrl>
// STL headers#include <limits>
using namespace Esri::ArcGISRuntime;
ApplyPointCloudRendererAndFilter::ApplyPointCloudRendererAndFilter(QObject *parent /* = nullptr */) : QObject(parent) , m_scene(new Scene(SceneViewingMode::Local, BasemapStyle::ArcGISStreets, this)){ // create a new elevation source from Terrain3D rest service ArcGISTiledElevationSource *elevationSource = new ArcGISTiledElevationSource(QUrl("https://elevation3d.arcgis.com/arcgis/rest/services/" "WorldElevation3D/Terrain3D/ImageServer"), this);
// add the elevation source to the scene to display elevation m_scene->baseSurface()->elevationSources()->append(elevationSource);
initializePointCloudLayer(); initializeRenderers(); initializeFilters();
applyRGBRenderer();}
ApplyPointCloudRendererAndFilter::~ApplyPointCloudRendererAndFilter() = default;
void ApplyPointCloudRendererAndFilter::init(){ qmlRegisterType<LocalSceneQuickView>("Esri.Samples", 1, 0, "LocalSceneView"); qmlRegisterType<ApplyPointCloudRendererAndFilter>("Esri.Samples", 1, 0, "ApplyPointCloudRendererAndFilterSample");}
void ApplyPointCloudRendererAndFilter::initializePointCloudLayer(){ auto *pointCloudItem = new PortalItem(QStringLiteral("bc963a0adfd7450d8cc11b58510fda8d"), this); m_pointCloudLayer = new PointCloudLayer(pointCloudItem, this);
connect(m_pointCloudLayer, &PointCloudLayer::doneLoading, this, [this]() { if (!m_sceneView || m_pointCloudLayer->loadStatus() != LoadStatus::Loaded) { return; }
m_sceneView->setViewpointAndWait(Viewpoint(m_pointCloudLayer->fullExtent())); });
m_scene->operationalLayers()->append(m_pointCloudLayer);}
void ApplyPointCloudRendererAndFilter::initializeRenderers(){ m_rgbRenderer = new PointCloudRgbRenderer("RGB", this);
const QList<PointCloudColorStop *> colorStops{new PointCloudColorStop(QColor(31, 79, 255), 0.0, this), new PointCloudColorStop(QColor(33, 163, 102), 30.0, this), new PointCloudColorStop(QColor(229, 57, 53), 90.0, this)}; m_stretchRenderer = new PointCloudStretchRenderer("ELEVATION", colorStops, this);
const QList<PointCloudColorClassBreak *> classBreaks{new PointCloudColorClassBreak(QColor(96, 67, 151), 0.0, 20.0, this), new PointCloudColorClassBreak(QColor(65, 145, 136), 20.0, 40.0, this), new PointCloudColorClassBreak(QColor(216, 155, 77), 40.0, std::numeric_limits<float>::max(), this)}; m_classBreaksRenderer = new PointCloudClassBreaksRenderer("ELEVATION", classBreaks, this);
const QList<PointCloudColorUniqueValue *> uniqueValues{ new PointCloudColorUniqueValue(QColor(139, 178, 194), {QStringLiteral("1")}, this), new PointCloudColorUniqueValue(QColor(212, 223, 160), {QStringLiteral("2")}, this), new PointCloudColorUniqueValue(QColor(168, 208, 141), {QStringLiteral("3")}, this), new PointCloudColorUniqueValue(QColor(112, 173, 71), {QStringLiteral("4")}, this), new PointCloudColorUniqueValue(QColor(47, 107, 47), {QStringLiteral("5")}, this), new PointCloudColorUniqueValue(QColor(200, 62, 62), {QStringLiteral("6")}, this), new PointCloudColorUniqueValue(QColor(187, 185, 220), {QStringLiteral("7")}, this), new PointCloudColorUniqueValue(QColor(187, 225, 228), {QStringLiteral("8")}, this), new PointCloudColorUniqueValue(QColor(155, 191, 177), {QStringLiteral("9")}, this), new PointCloudColorUniqueValue(QColor(75, 85, 99), {QStringLiteral("10")}, this), new PointCloudColorUniqueValue(QColor(107, 114, 128), {QStringLiteral("11")}, this), new PointCloudColorUniqueValue(QColor(209, 213, 219), {QStringLiteral("12")}, this), new PointCloudColorUniqueValue(QColor(245, 158, 11), {QStringLiteral("13")}, this), new PointCloudColorUniqueValue(QColor(234, 179, 8), {QStringLiteral("14")}, this), new PointCloudColorUniqueValue(QColor(124, 58, 237), {QStringLiteral("15")}, this), new PointCloudColorUniqueValue(QColor(236, 72, 153), {QStringLiteral("16")}, this), new PointCloudColorUniqueValue(QColor(139, 90, 43), {QStringLiteral("17")}, this), new PointCloudColorUniqueValue(QColor(17, 24, 39), {QStringLiteral("18")}, this)}; m_uniqueValueRenderer = new PointCloudUniqueValueRenderer("CLASS_CODE", uniqueValues, this);
const QList<PointCloudRenderer *> renderers{m_rgbRenderer, m_stretchRenderer, m_classBreaksRenderer, m_uniqueValueRenderer}; for (PointCloudRenderer *renderer : renderers) { renderer->setSizeAlgorithm(new PointCloudSplatAlgorithm(1.0, renderer)); renderer->setPointsPerInch(25.0); }}
void ApplyPointCloudRendererAndFilter::initializeFilters(){ m_valueFilter = new PointCloudValueFilter("CLASS_CODE", {}, PointCloudValueFilterMode::Include, m_pointCloudLayer); m_returnFilter = new PointCloudReturnFilter("RETURNS", {}, m_pointCloudLayer); m_bitfieldFilter = new PointCloudBitfieldFilter("FLAGS", {}, {}, m_pointCloudLayer);}
LocalSceneQuickView *ApplyPointCloudRendererAndFilter::sceneView() const{ return m_sceneView;}
// Set the view (created in QML)void ApplyPointCloudRendererAndFilter::setSceneView(LocalSceneQuickView *sceneView){ if (!sceneView || sceneView == m_sceneView) { return; }
m_sceneView = sceneView; m_sceneView->setArcGISScene(m_scene);
emit sceneViewChanged();}
void ApplyPointCloudRendererAndFilter::applyRGBRenderer(){ m_pointCloudLayer->setRenderer(m_rgbRenderer);}
void ApplyPointCloudRendererAndFilter::applyStretchRenderer(){ m_pointCloudLayer->setRenderer(m_stretchRenderer);}
void ApplyPointCloudRendererAndFilter::applyClassBreaksRenderer(){ m_pointCloudLayer->setRenderer(m_classBreaksRenderer);}
void ApplyPointCloudRendererAndFilter::applyUniqueValueRenderer(){ m_pointCloudLayer->setRenderer(m_uniqueValueRenderer);}
void ApplyPointCloudRendererAndFilter::setPointSize(double pointSize){ auto *splatAlgorithm = qobject_cast<PointCloudSplatAlgorithm *>( m_pointCloudLayer->renderer()->sizeAlgorithm()); splatAlgorithm->setScaleFactor(pointSize);}
void ApplyPointCloudRendererAndFilter::applyValueFilter(){ auto *filters = m_pointCloudLayer->filters(); if (!filters->contains(m_valueFilter)) { filters->append(m_valueFilter); }}
void ApplyPointCloudRendererAndFilter::toggleClassCode(int classCode){ QList<double> classCodes = m_valueFilter->values(); if (classCodes.contains(classCode)) { classCodes.removeAll(classCode); } else { classCodes.append(classCode); }
m_valueFilter->setValues(classCodes);}
void ApplyPointCloudRendererAndFilter::toggleValueFilterMode(bool excluded){ m_valueFilter->setMode(excluded ? PointCloudValueFilterMode::Exclude : PointCloudValueFilterMode::Include);}
void ApplyPointCloudRendererAndFilter::clearValueFilter(){ m_valueFilter->setValues({}); m_pointCloudLayer->filters()->removeOne(m_valueFilter);}
void ApplyPointCloudRendererAndFilter::applyReturnFilter(){ auto *filters = m_pointCloudLayer->filters(); if (!filters->contains(m_returnFilter)) { filters->append(m_returnFilter); }}
void ApplyPointCloudRendererAndFilter::toggleReturnType(int returnType){ QList<PointCloudReturnType> returnTypes = m_returnFilter->includedReturns(); const auto pointCloudReturnType = static_cast<PointCloudReturnType>(returnType); if (returnTypes.contains(pointCloudReturnType)) { returnTypes.removeAll(pointCloudReturnType); } else { returnTypes.append(pointCloudReturnType); }
m_returnFilter->setIncludedReturns(returnTypes);}
void ApplyPointCloudRendererAndFilter::clearReturnFilter(){ m_returnFilter->setIncludedReturns({}); m_pointCloudLayer->filters()->removeOne(m_returnFilter);}
void ApplyPointCloudRendererAndFilter::applyBitfieldFilter(){ auto *filters = m_pointCloudLayer->filters(); if (!filters->contains(m_bitfieldFilter)) { filters->append(m_bitfieldFilter); }}
void ApplyPointCloudRendererAndFilter::toggleBitfieldBit(int bitPosition, bool setBit){ QList<quint32> requiredClearBits = m_bitfieldFilter->requiredClearBits(); QList<quint32> requiredSetBits = m_bitfieldFilter->requiredSetBits();
if (setBit) { // If this is a set bit and not a clear bit requiredClearBits.removeAll( bitPosition); // Remove the clear bit if it exists to ensure mutually exclusive bit positions between set and clear if (requiredSetBits.contains( bitPosition)) { // If the set bit already exists, toggle it off by removing it from the list of required set bits requiredSetBits.removeAll(bitPosition); } else { requiredSetBits.append( bitPosition); // Else toggle it on by adding it to the list of required set bits } } else { // If this is a clear bit and not a set bit requiredSetBits.removeAll( bitPosition); // Remove the clear bit if it exists to ensure mutually exclusive bit positions between set and clear if (requiredClearBits.contains( bitPosition)) { // If the clear bit already exists, toggle it off by removing it from the list of required clear bits requiredClearBits.removeAll(bitPosition); } else { requiredClearBits.append( bitPosition); // Else toggle it on by adding it to the list of required clear bits } }
m_bitfieldFilter->setRequiredClearBits(requiredClearBits); m_bitfieldFilter->setRequiredSetBits(requiredSetBits);}
void ApplyPointCloudRendererAndFilter::clearBitfieldFilter(){ m_bitfieldFilter->setRequiredClearBits({}); m_bitfieldFilter->setRequiredSetBits({}); m_pointCloudLayer->filters()->removeOne(m_bitfieldFilter);}// [WriteFile Name=ApplyPointCloudRendererAndFilter, Category=Scenes]// [Legal]// Copyright 2026 Esri.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.// [Legal]
#ifndef APPLYPOINTCLOUDRENDERERANDFILTER_H#define APPLYPOINTCLOUDRENDERERANDFILTER_H
// Qt headers#include <QObject>
namespace Esri::ArcGISRuntime {class LocalSceneQuickView;class PointCloudBitfieldFilter;class PointCloudLayer;class PointCloudRenderer;class PointCloudReturnFilter;class PointCloudValueFilter;class Scene;} // namespace Esri::ArcGISRuntime
Q_MOC_INCLUDE("LocalSceneQuickView.h")
class ApplyPointCloudRendererAndFilter : public QObject{ Q_OBJECT
Q_PROPERTY(Esri::ArcGISRuntime::LocalSceneQuickView *sceneView READ sceneView WRITE setSceneView NOTIFY sceneViewChanged)
public: explicit ApplyPointCloudRendererAndFilter(QObject *parent = nullptr); ~ApplyPointCloudRendererAndFilter() override;
static void init();
Q_INVOKABLE void applyRGBRenderer(); Q_INVOKABLE void applyStretchRenderer(); Q_INVOKABLE void applyClassBreaksRenderer(); Q_INVOKABLE void applyUniqueValueRenderer(); Q_INVOKABLE void setPointSize(double pointSize);
Q_INVOKABLE void applyValueFilter(); Q_INVOKABLE void toggleClassCode(int classCode); Q_INVOKABLE void toggleValueFilterMode(bool excluded); Q_INVOKABLE void clearValueFilter();
Q_INVOKABLE void applyReturnFilter(); Q_INVOKABLE void toggleReturnType(int returnType); Q_INVOKABLE void clearReturnFilter();
Q_INVOKABLE void applyBitfieldFilter(); Q_INVOKABLE void toggleBitfieldBit(int bitPosition, bool setBit); Q_INVOKABLE void clearBitfieldFilter();
signals: void sceneViewChanged();
private: Esri::ArcGISRuntime::LocalSceneQuickView *sceneView() const; void setSceneView(Esri::ArcGISRuntime::LocalSceneQuickView *sceneView);
void initializePointCloudLayer(); void initializeRenderers(); void initializeFilters();
Esri::ArcGISRuntime::Scene *m_scene = nullptr; Esri::ArcGISRuntime::LocalSceneQuickView *m_sceneView = nullptr; Esri::ArcGISRuntime::PointCloudLayer *m_pointCloudLayer = nullptr; Esri::ArcGISRuntime::PointCloudRenderer *m_rgbRenderer = nullptr; Esri::ArcGISRuntime::PointCloudRenderer *m_stretchRenderer = nullptr; Esri::ArcGISRuntime::PointCloudRenderer *m_classBreaksRenderer = nullptr; Esri::ArcGISRuntime::PointCloudRenderer *m_uniqueValueRenderer = nullptr; Esri::ArcGISRuntime::PointCloudValueFilter *m_valueFilter = nullptr; Esri::ArcGISRuntime::PointCloudReturnFilter *m_returnFilter = nullptr; Esri::ArcGISRuntime::PointCloudBitfieldFilter *m_bitfieldFilter = nullptr;};
#endif // APPLYPOINTCLOUDRENDERERANDFILTER_H// [WriteFile Name=ApplyPointCloudRendererAndFilter, Category=Scenes]// [Legal]// Copyright 2026 Esri.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at// http://www.apache.org/licenses/LICENSE-2.0//// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.// [Legal]
import QtQuickimport QtQuick.Controlsimport Esri.Samples
Item { id: root
component SectionPanel: Rectangle { id: sectionPanel
required property string title property bool expanded: false default property alias content: sectionBody.data
height: sectionContent.implicitHeight + 32 color: palette.base border.color: palette.dark radius: 6
Column { id: sectionContent anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right anchors.margins: 16 spacing: 12
Rectangle { id: sectionHeader width: parent.width height: 40 color: "transparent" radius: 4
MouseArea { anchors.fill: parent onClicked: sectionPanel.expanded = !sectionPanel.expanded }
Label { anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter text: sectionPanel.title font.pixelSize: 16 font.weight: Font.DemiBold }
Label { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter text: sectionPanel.expanded ? "-" : "+" font.pixelSize: 20 } }
Column { id: sectionBody width: parent.width spacing: 12 visible: sectionPanel.expanded } } }
LocalSceneView { id: view anchors.fill: parent }
ApplyPointCloudRendererAndFilterSample { id: sampleModel sceneView: view }
ScrollView { id: controlsPanel width: Math.min(340, root.width - 24) height: Math.min(controlsContent.implicitHeight, root.height - 24) anchors.top: parent.top anchors.right: parent.right anchors.margins: 12 clip: true background: Item {}
Column { id: controlsContent width: controlsPanel.availableWidth spacing: 12
SectionPanel { width: parent.width title: "Rendering" expanded: true
GroupBox { width: parent.width title: "Renderer"
Column { width: parent.width spacing: 4
ButtonGroup { id: rendererButtonGroup }
RadioButton { text: "RGB" checked: true ButtonGroup.group: rendererButtonGroup onClicked: { sampleModel.applyRGBRenderer() sampleModel.setPointSize(pointSizeSlider.value) } }
RadioButton { text: "Stretch" ButtonGroup.group: rendererButtonGroup onClicked: { sampleModel.applyStretchRenderer() sampleModel.setPointSize(pointSizeSlider.value) } }
RadioButton { text: "Class breaks" ButtonGroup.group: rendererButtonGroup onClicked: { sampleModel.applyClassBreaksRenderer() sampleModel.setPointSize(pointSizeSlider.value) } }
RadioButton { text: "Unique value" ButtonGroup.group: rendererButtonGroup onClicked: { sampleModel.applyUniqueValueRenderer() sampleModel.setPointSize(pointSizeSlider.value) } } } }
GroupBox { width: parent.width title: "Point size"
Column { width: parent.width spacing: 4
Slider { id: pointSizeSlider width: parent.width from: 0 to: 5 value: 1.0 onMoved: sampleModel.setPointSize(value) } } }
}
SectionPanel { width: parent.width title: "Filtering" expanded: false
GroupBox { width: parent.width title: "Value filter"
Column { width: parent.width spacing: 4
Label { text: "Filter mode" font.weight: Font.DemiBold }
Row { width: parent.width spacing: 8
RadioButton { id: includeSelectedMode text: "Include selected" onClicked: { sampleModel.toggleValueFilterMode(false) sampleModel.applyValueFilter() } }
RadioButton { id: excludeSelectedMode text: "Exclude selected" onClicked: { sampleModel.toggleValueFilterMode(true) sampleModel.applyValueFilter() } } }
Repeater { id: classCodeRepeater model: [ { code: 2, label: "Ground" }, { code: 5, label: "High vegetation" }, { code: 6, label: "Building" } ]
delegate: CheckBox { required property var modelData text: modelData.label onToggled: { if (checked && !includeSelectedMode.checked && !excludeSelectedMode.checked) { includeSelectedMode.checked = true sampleModel.toggleValueFilterMode(false) } sampleModel.toggleClassCode(modelData.code) sampleModel.applyValueFilter() } } }
Button { width: parent.width text: "Clear value filter" onClicked: { for (let index = 0; index < classCodeRepeater.count; ++index) { classCodeRepeater.itemAt(index).checked = false } includeSelectedMode.checked = false excludeSelectedMode.checked = false sampleModel.clearValueFilter() } } } }
GroupBox { width: parent.width title: "Return filter"
Column { width: parent.width spacing: 4
Repeater { id: returnTypeRepeater model: [ { type: 0, label: "First of many" }, { type: 1, label: "Last" }, { type: 2, label: "Last of many" }, { type: 3, label: "Single" } ]
delegate: CheckBox { required property var modelData text: modelData.label onToggled: { sampleModel.toggleReturnType(modelData.type) sampleModel.applyReturnFilter() } } }
Button { width: parent.width text: "Clear return filter" onClicked: { for (let index = 0; index < returnTypeRepeater.count; ++index) { returnTypeRepeater.itemAt(index).checked = false } sampleModel.clearReturnFilter() } } } }
GroupBox { width: parent.width title: "Bitfield filter"
Column { width: parent.width spacing: 8
Label { text: "Scan direction flag" font.weight: Font.DemiBold }
ButtonGroup { id: scanDirectionFlagButtonGroup }
Row { width: parent.width spacing: 8
RadioButton { text: "Set" ButtonGroup.group: scanDirectionFlagButtonGroup onToggled: { if (checked) { sampleModel.toggleBitfieldBit(6, true) sampleModel.applyBitfieldFilter() } } }
RadioButton { text: "Clear" ButtonGroup.group: scanDirectionFlagButtonGroup onToggled: { if (checked) { sampleModel.toggleBitfieldBit(6, false) sampleModel.applyBitfieldFilter() } } } }
Button { width: parent.width text: "Clear bitfield filter" onClicked: { if (scanDirectionFlagButtonGroup.checkedButton) { scanDirectionFlagButtonGroup.checkedButton.checked = false } sampleModel.clearBitfieldFilter() } } } }
} } }}