QGIS插件:单击QgsAttributeForm中的X触发closeEvent

时间:2019-01-30 07:38:43

标签: python pyqt qgis

这是代码:

plot_ly

我想在单击按钮Q(QgsAttributeForm)时显示消息,例如:

def formOpen(dialog, layer, feature):
    """Function called when a connec is identified in the map"""

    global feature_dialog
    # Create class to manage Feature Form interaction
    feature_dialog = ParentDialog(dialog, layer, feature)
    init_config()


def init_config():
    pass


class ParentDialog():
    def __init__(self, dialog, layer, feature):
        """ Constructor class """

        self.dialog = dialog
        self.layer = layer
        self.feature = feature
        self.iface = iface

有什么方法可以将对话框(QgsAttributeForm)与closeEvent相关联,还是有其他解决方案?

0 个答案:

没有答案