Bug report #18179

Processing Settings exception with Settings.INT type

Added by Alex Riley about 6 years ago. Updated about 6 years ago.

Assignee:Victor Olaya
Affected QGIS version:master Regression?:No
Operating System:Ubuntu 17.10 Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:26070


In my Processing Provider plugin I have an integer setting:

setting = Setting('MY_PROVIDER',
             self.tr("Maximum values"),

When opening the Processing Settings dialog, this setting displays with no issue, but attempting to change the value raises the following exception:

AttributeError: 'QgsSpinBox' object has no attribute 'setText' 
Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/processing/gui/ConfigDialog.py", line 404, in setEditorData
AttributeError: 'QgsSpinBox' object has no attribute 'setText'

Python version: 3.6.3 (default, Oct 3 2017, 21:45:48) [GCC 7.2.0]
QGIS version: 2.99.0-Master Master, 585a4d3

Associated revisions

Revision 75a9150a
Added by Nyall Dawson about 6 years ago

[processing] Fix config exception with INT/FLOAT settings

Fixes #18179


#1 Updated by Nyall Dawson about 6 years ago

  • Status changed from Open to In Progress

#2 Updated by Nyall Dawson about 6 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

#3 Updated by Giovanni Manghi about 6 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF