QGIS API Documentation 3.39.0-Master (be2050b798e)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
QgsQuickUtils Class Reference

The QgsQuickUtils class serves as a utility class for common operations needed either from QML or cpp. More...

#include <qgsquickutils.h>

Inheritance diagram for QgsQuickUtils:
Inheritance graph
[legend]

Public Member Functions

 QgsQuickUtils (QObject *parent=nullptr)
 Creates new QgsQuickUtils - this class is meant to serve as a QML singleton.
 
 ~QgsQuickUtils ()=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

The QgsQuickUtils class serves as a 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 36 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 18 of file qgsquickutils.cpp.

◆ ~QgsQuickUtils()

QgsQuickUtils::~QgsQuickUtils ( )
default

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 23 of file qgsquickutils.cpp.


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