QGIS/python/gui/auto_generated/editorwidgets/qgsqmlwidgetwrapper.sip.in
2018-09-10 08:16:06 +02:00

67 lines
1.9 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsqmlwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsQmlWidgetWrapper : QgsWidgetWrapper
{
%Docstring
Wraps a QQuickWidget to display QML code
.. versionadded:: 3.4
%End
%TypeHeaderCode
#include "qgsqmlwidgetwrapper.h"
%End
public:
QgsQmlWidgetWrapper( QgsVectorLayer *layer, QWidget *editor, QWidget *parent );
%Docstring
Create a qml widget wrapper
:param layer: The layer on which the feature is
:param editor: An editor widget. Can be NULL if one should be autogenerated.
:param parent: A parent widget
%End
virtual bool valid() const;
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
void reinitWidget();
%Docstring
Clears the content and makes new initialization
%End
void setQmlCode( const QString &qmlCode );
%Docstring
writes the ``qmlCode`` into a temporary file
%End
public slots:
virtual void setFeature( const QgsFeature &feature );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsqmlwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/