<div dir="ltr">Hi Andreas,<div><br></div><div>You have to subclass QgsEditorWidgetWrapper and reimplement setEnabled method (in which you can keep the widget always enabled).</div><div>Maybe have a look at QgsTextEditWrapper which keeps the line edit enabled but read only.</div><div><br></div><div>Denis</div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 13 juil. 2017 à 13:42, Anders Vittrup <<a href="mailto:anvit2a@gmail.com">anvit2a@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm creating a plugin which creates a edit widget (or just a widget ? ) where i have a combobox and a few buttons.</div><div><br></div><div>Is it possible to force this widget to be enabled outside edit mode of the layer ?</div><div>I have tried setEnabled on widget, parent, qgseditorwidgetwrapper and so on.</div><div><br></div><div>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. </div><div><br></div><div>Is is this not possible or should i use another widgetwrapper than qgseditorwidgetwrapper?</div><div><br></div><div>Best regards</div><div>Anders</div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>