<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I have an algorithm that during execution gathers information from the data and then pops up a window for the user to select what the user would like to do.</div><div><br></div><div>Is this possible in the Processing framework? I have tried doing this in processAlgorithm and it crashes QGIS. Here is how I call the popup window.<br></div><div><br></div><div> fieldsDialog = SelectionDialog(self.tableFeatures)<br> fieldsDialog.exec_()<br> items = fieldsDialog.selected</div><div><br></div><div>Here is the beginning of the SelectionDialong class.<br></div><br><div>class SelectionDialog(QDialog, FIELDS_CLASS):<br> def __init__(self, feat, parent=None):<br> super(SelectionDialog, self).__init__(parent)</div><div> self.setupUi(self)<br><br></div><div>
<div>
Prior to Processing I passed in
iface.mainWindow() as the parent. Is there a proper parent in Processing to pass? Perhaps this is the reason it is crashing.</div><div><br></div>
</div><div>class SelectionDialog(QDialog, FIELDS_CLASS):<br> def __init__(self, iface, feat):<br> super(SelectionDialog, self).__init__(iface.mainWindow())<br> self.setupUi(self)<br></div><div><br></div><div>Thanks,</div><div><br></div><div>Calvin<br></div></div></div></div></div></div></div>