You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced this take care of all the situations. I am getting crashes when opening forms and apparently this is due to a wrong configuration of ui and/or python code.
It would have be good to check that old projects are properly migrated.
I don't mind reconfiguring my projects, but it would be quite annoying if people get crashes with next LTR.
The reason will be displayed to describe this comment to others. Learn more.
Can you help me providing the projects that crashes?
Of course it shouldn't crash whatever the user (or the import old projects patch) writes into initfunction or initcode.
The reason will be displayed to describe this comment to others. Learn more.
I am using load from externalfile with this file:
from PyQt4 import uic
from PyQt4.QtGui import QComboBox, QWidget
subForms = None
def formOpen(dialog, layer, feature):
typeSelector = dialog.findChild(QComboBox, 'installation_type')
typeSelector.currentIndexChanged.connect(typeSelection)
global subForms
subForms = []
for i in range(0, typeSelector.count()):
widgetName = typeSelector.itemData(i)
childWidget = dialog.findChild(QWidget, widgetName)
subForms.append(childWidget)
typeSelection(typeSelector.currentIndex())
def typeSelection( index ):
for i, widget in enumerate(subForms):
widget.setVisible( i == index )
I have formOpen for function name
Here is the error I get
An error occured during execution of following code:
from PyQt4 import uic
from PyQt4.QtGui import QComboBox, QWidget
subForms = None
def formOpen(dialog, layer, feature):
typeSelector = dialog.findChild(QComboBox, 'installation_type')
typeSelector.currentIndexChanged.connect(typeSelection)
global subForms
subForms = []
for i in range(0, typeSelector.count()):
widgetName = typeSelector.itemData(i)
childWidget = dialog.findChild(QWidget, widgetName)
subForms.append(childWidget)
typeSelection(typeSelector.currentIndex())
def typeSelection( index ):
for i, widget in enumerate(subForms):
widget.setVisible( i == index )
Traceback (most recent call last):
File "", line 1, in
NameError: name 'formOpen' is not defined
8c4d810
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced this take care of all the situations. I am getting crashes when opening forms and apparently this is due to a wrong configuration of ui and/or python code.
It would have be good to check that old projects are properly migrated.
I don't mind reconfiguring my projects, but it would be quite annoying if people get crashes with next LTR.
8c4d810
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you help me providing the projects that crashes?
Of course it shouldn't crash whatever the user (or the import old projects patch) writes into initfunction or initcode.
8c4d810
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems that the new behavior with load external file is not working properly either.
see my comment in PR #2498 for the code I use.
I can't provide a QGIS project, it comes with a large DB and many external files, and I don't have a 2.12 built anymore.
8c4d810
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using load from externalfile with this file:
I have
formOpen
for function nameHere is the error I get
8c4d810
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does find the code, but can't find formOpen, am I doing something wrong?