Hot answers tagged

5

Any GUI doesn't appear when using PyQGIS standalone application. You have to construct it. Here is an example: from qgis.core import * from qgis.gui import * from qgis.PyQt.QtWidgets import * ### GUI Construction ### class MapViewer(QMainWindow): def __init__(self): QMainWindow.__init__(self, None) self._canvas = QgsMapCanvas() ...


4

Try to pass the third parameter as string which refers property name, filePath here. self.wizardPage.registerField('projPath*', self.projPath, 'filePath', self.projPath.fileChanged) Here is a working example in QGIS Python Editor: from qgis.PyQt.QtCore import * from qgis.PyQt.QtGui import * class Wizard(QWizard): def __init__(self, parent=None): ...


Only top voted, non community-wiki answers of a minimum length are eligible