QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsQuickUtils Class Reference

Utility class for common operations needed either from QML or cpp. More...

#include <qgsquickutils.h>

Inheritance diagram for QgsQuickUtils:

Public Member Functions

 QgsQuickUtils (QObject *parent=nullptr)
 Creates new QgsQuickUtils - this class is meant to serve as a QML singleton.
 ~QgsQuickUtils () override=default

Static Public Member Functions

static Q_INVOKABLE QgsPoint toQgsPoint (const QPointF &point)
 Helper function to convert QPointF to QgsPoint without any transformations.

Detailed Description

Utility class for common operations needed either from QML or cpp.

Note
use in qml as a singleton, registered as "Utils", e.g. QgsQuick.Utils.toQgsPoint
Since
QGIS 3.30

Definition at line 34 of file qgsquickutils.h.

Constructor & Destructor Documentation

◆ QgsQuickUtils()

QgsQuickUtils::QgsQuickUtils ( QObject * parent = nullptr)
explicit

Creates new QgsQuickUtils - this class is meant to serve as a QML singleton.

Definition at line 20 of file qgsquickutils.cpp.

◆ ~QgsQuickUtils()

QgsQuickUtils::~QgsQuickUtils ( )
overridedefault

Member Function Documentation

◆ toQgsPoint()

QgsPoint QgsQuickUtils::toQgsPoint ( const QPointF & point)
static

Helper function to convert QPointF to QgsPoint without any transformations.

Useful for converting these values in QML.

Definition at line 25 of file qgsquickutils.cpp.


The documentation for this class was generated from the following files: