By Rostranimin


2019-03-14 11:12:24 8 Comments

Previously, on QGIS 2.18, I followed this well known tutorial to create a user form with some basic Python driven buttons. https://nathanw.net/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/

The QGIS 3 layer properties interface no longer has the setting (at least not in the same place, so I can't find it) which tells QGIS to run a Python script on opening the form. This is discussed in the tutorial in the section headed "almost done".

How is this achieved?

1 comments

@Rostranimin 2019-03-14 11:31:08

Answering my own question (I'm sure other people will struggle with this). The interface DOES have the same setting in the same place - but whereas on QGIS 2.18 there is an obvious box into which the details of the script are written (as in the tutorial) on QGIS 3 is a small button with a python icon on it. Once you've noticed it it's obvious.

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] Raw user input for QGIS and Python

  • 2019-01-28 15:47:11
  • jyingling
  • 46 View
  • 1 Score
  • 1 Answer
  • Tags:   qgis python pyqgis

1 Answered Questions

Drawing Polyline with user input points in QGIS using Python?

  • 2018-07-25 12:48:12
  • Virat ABD
  • 114 View
  • 1 Score
  • 1 Answer
  • Tags:   pyqgis

0 Answered Questions

Running python code created in QGIS

  • 2018-12-12 03:10:00
  • aka49
  • 64 View
  • 2 Score
  • 0 Answer
  • Tags:   pyqgis python-3

0 Answered Questions

Can the tools in QGIS be used in python code?

  • 2018-06-11 13:18:07
  • jacob Blankenship
  • 81 View
  • 0 Score
  • 0 Answer
  • Tags:   qgis python pyqgis

2 Answered Questions

[SOLVED] Building custom form for QGIS in Python plugin?

1 Answered Questions

[SOLVED] Changing CRS transformation using QGIS python code?

1 Answered Questions

[SOLVED] Specifying CRS for QgsCoordinateTransform?

1 Answered Questions

[SOLVED] Python GUI for QGIS plugin ; how to reference form controls in code?

1 Answered Questions

[SOLVED] User interface for QGIS processing scripts

1 Answered Questions

[SOLVED] QGIS GUI Python Editor Code Running Exception

  • 2014-05-28 10:17:32
  • K PAVAN KUMAR
  • 532 View
  • 1 Score
  • 1 Answer
  • Tags:   pyqgis

Sponsored Content