[QGIS-Developer] QGIS edit widget force enable without edit mode

Anders Vittrup anvit2a at gmail.com
Thu Jul 13 04:41:58 PDT 2017


Hi,

I'm creating a plugin which creates a edit widget (or just a widget ? )
where i have a combobox and a few buttons.

Is it possible to force this widget to be enabled outside edit mode of the
layer ?
I have tried setEnabled on widget, parent, qgseditorwidgetwrapper and so on.

The widget only gets enabled when i edit mode. But i still want it to be
enabled when not in edit mode. I will select an item from the combobox and
then click on a button in the widget.

Is is this not possible or should i use another widgetwrapper than
qgseditorwidgetwrapper?

Best regards
Anders
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170713/74320de7/attachment.html>


More information about the QGIS-Developer mailing list