44 cfg.insert(
"Height", configElement.
attribute(
"Height",
nullptr ).
toInt() );
45 cfg.insert(
"Width", configElement.
attribute(
"Width",
nullptr ).
toInt() );
56 configElement.
setAttribute(
"Height", config.value(
"Height", 0 ).toString() );
57 configElement.
setAttribute(
"Width", config.value(
"Width", 0 ).toString() );
QString attribute(const QString &name, const QString &defValue) const
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper.
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
Represents a vector layer which manages a vector based data sets.