[Qgis-developer] Open custom form from another form
Luca Lanteri
mescal72 at gmail.com
Tue Jan 14 07:50:50 PST 2014
Hi to all,
I need a help from a python guru. I'm trying to move my first steps with
pyqgis.
I've got two qgis layer with a 1 to many relation. I create a custom form
for the parent layer with a QTableWidget that contain the primary key of
the child layer. Now I want to open another custom form with the data of
the child record selected into the QTableWidget. I try to look up into the
QGIS API Documentation but I'didn't find the solution to my problem.
Now I just can open form with this code, connected with a button:
path = os.path.dirname( os.path.abspath( __file__ ) )
uifile = os.path.join(path , my_form.ui')
window = uic.loadUi(uifile)
window.exec_()
how can I connect my form with the right data ?
Can I use some method to select the right layer/record and open it in the
form ?
Thanks in advance for any tips
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140114/ca441dc6/attachment.html>
More information about the Qgis-developer
mailing list