QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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 19 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 24 of file qgsquickutils.cpp.