Skip to content
Permalink
Browse files

Changed the toolip with the new information

  • Loading branch information
elpaso committed Nov 5, 2015
1 parent 322496a commit cf4693e3260213d9a1c819fbbd8d716dbda4fc77
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/ui/qgsfieldspropertiesbase.ui
@@ -86,17 +86,21 @@ MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.<
<widget class="QLineEdit" name="leEditFormInit">
<property name="toolTip">
<string>QGIS forms can have a Python function that is called when the form is opened.
Use this function to add extra logic to your forms.
Use this function to add extra logic to your forms. You can either provide the python
code directly in this dialog or run the code from an external file (that must live on
PYTHONPATH, .qgis/python, or inside the project folder).

An example is (in module MyForms.py):

def open(dialog, layer, feature):
geom = feature.geometry()
control = dialog.findChild(QWidget,&quot;MyLineEdit&quot;)

Reference in Python Init Function like so: MyForms.open
Reference in Python Init Function like so: &quot;MyForms.open&quot; or just &quot;open&quot; if provided
directly in this dialog.

MyForms.py must live on PYTHONPATH, .qgis/python, or inside the project folder.</string>

</string>
</property>
</widget>
</item>

0 comments on commit cf4693e

Please sign in to comment.
You can’t perform that action at this time.