QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
The QgsQuickUtils class serves as a utility class for common operations needed either from QML or cpp. More...
#include <qgsquickutils.h>
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. | |
The QgsQuickUtils class serves as a utility class for common operations needed either from QML or cpp.
Definition at line 36 of file qgsquickutils.h.
|
explicit |
Creates new QgsQuickUtils - this class is meant to serve as a QML singleton.
Definition at line 18 of file qgsquickutils.cpp.
|
default |
|
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.