|
| QgsQmlWidgetWrapper (QgsVectorLayer *layer, QWidget *editor, QWidget *parent) |
| Create a qml widget wrapper. More...
|
|
QWidget * | createWidget (QWidget *parent) override |
| This method should create a new widget with the provided parent. More...
|
|
void | initWidget (QWidget *editor) override |
| This method should initialize the editor widget with runtime data. More...
|
|
void | reinitWidget () |
| Clears the content and makes new initialization. More...
|
|
void | setQmlCode (const QString &qmlCode) |
| writes the qmlCode into a temporary file More...
|
|
bool | valid () const override |
| Returns true if the widget has been properly initialized. More...
|
|
| QgsWidgetWrapper (QgsVectorLayer *vl, QWidget *editor=nullptr, QWidget *parent=nullptr) |
| Create a new widget wrapper. More...
|
|
QVariantMap | config () const |
| Returns the whole config. More...
|
|
QVariant | config (const QString &key, const QVariant &defaultVal=QVariant()) const |
| Use this inside your overridden classes to access the configuration. More...
|
|
const QgsAttributeEditorContext & | context () const |
| Returns information about the context in which this widget is shown. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the editor widget's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the editor widget's property collection, used for data defined overrides. More...
|
|
QgsVectorLayer * | layer () const |
| Returns the vector layer associated with the widget. More...
|
|
void | notifyAboutToSave () |
| Notify this widget, that the containing form is about to save and that any pending changes should be pushed to the edit buffer or they might be lost. More...
|
|
void | setConfig (const QVariantMap &config) |
| Will set the config of this wrapper to the specified config. More...
|
|
void | setContext (const QgsAttributeEditorContext &context) |
| Set the context in which this widget is shown. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the editor widget's property collection, used for data defined overrides. More...
|
|
virtual bool | valid () const =0 |
| Returns true if the widget has been properly initialized. More...
|
|
QWidget * | widget () |
| Access the widget managed by this wrapper. More...
|
|
template<class T > |
T * | widget () |
| Access the widget managed by this wrapper and cast it to a given type. More...
|
|