Bug report #13516

Problem with global variable and QgisRelationEditorWidget

Added by Luca Lanteri over 7 years ago. Updated almost 4 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:21560


I have a 3 level nested form (granparent,parent and child).
If I don't use global variables when I select a record in child to parent and then one in parent, QGIS raise an error [0].

to avoid this error I have to declare some variable as global in my parent form but then I have a minidump error when insert new records, because as Matthias said in list there are some problem with custom and global variable.

Traceback (most recent call last):
File "E:/lavori/Progetti_PIE/Convenzione_SISMICA/NomeComune_RP_v2.1.3_alpha1\\indaginipun.py", line 42, in
LedQtop.textChanged.connect(lambda: validaQuota(LedQtop))
NameError: free variable 'LedQtop' referenced before assignment in enclosing scope


#1 Updated by Giovanni Manghi almost 6 years ago

  • Easy fix? set to No
  • Regression? set to No

#2 Updated by Giovanni Manghi almost 4 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF