简体   繁体   English

从Qt Designer到Qgis

[英]From Qt Designer to Qgis

I'm starting to work with PyQgis. 我开始使用PyQgis。 However, I have been stuck at one point for some time. 但是,我已经停留在某一时间了一段时间。

  1. I have designed a basic dialog box to do integration tests in Qgis, called Test.ui 我设计了一个基本对话框,用于在Qgis中进行集成测试,称为Test.ui。
  2. This file has been compiled with the use of OSGEO4w Shell obtaining a Test.py module. 已使用OSGEO4w Shell编译此文件以获取Test.py模块。
  3. In QGis I open the Python console to apply this dialog box designed to a script with a functionality. 在QGis中,我打开Python控制台以将此对话框设计应用于具有功能的脚本。 This Python script in Qgis declares a line qid = QInputDialog (). Qgis中的此Python脚本声明了一行qid = QInputDialog()。

This is where I stopped, since I do not know how to apply the design in Qt Designer in the Python console script in QGis. 这是我停止的地方,因为我不知道如何在QGis的Python控制台脚本中的Qt Designer中应用设计。 What path should the compiled * .py modules follow? 编译后的* .py模块应遵循什么路径? Thanks in advance. 提前致谢。

I'm starting to learn language, reading your question I suggest that you see the creation of plugins in python, the standard example of exporting data from shape to a csv, already shows how to connect a .ui screen to a python script, which is your intention . 我开始学习语言,阅读您的问题,我建议您看到python中插件的创建(将数据从shape导出到csv的标准示例),已经展示了如何将.ui屏幕连接到python脚本,是你的意图。

http://www.qgistutorials.com/en/docs/building_a_python_plugin.html http://www.qgistutorials.com/en/docs/building_a_python_plugin.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM