title: error while connecting to other function using connect while using pyqtlet in pyqt5
body: <p>Error:
  QObject::connect: Cannot connect Map::clicked(PyQt_PyObject) to (nullptr)::save(PyQt_PyObject)</p>
  <p>Not able to call method save using connect.
  I basically want to save the coordinates when the user clicks a position on map. so i call the method save if the user clicks anywhere on map and save it in variable a
  # -<em>- coding: utf-8 -</em>-</p>
  <pre><code>from PyQt5.QtCore import pyqtSlot
  from PyQt5 import QtCore, QtGui, QtWidgets
  from pyqtlet import L, MapWidget
  import sys
  
  
  class Ui_MainWindow(object):
      def setupUi(self, MainWindow):
          MainWindow.setObjectName(&quot;MainWindow&quot;)
          MainWindow.resize(1256, 744)
          self.mapWidget = MapWidget()
          self.centralwidget = QtWidgets.QWidget(MainWindow)
          self.centralwidget.setObjectName(&quot;centralwidget&quot;)
          self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
          self.verticalLayoutWidget.setGeometry(QtCore.QRect(620, 0, 631, 541))
          self.verticalLayoutWidget.setObjectName(&quot;verticalLayoutWidget&quot;)
          self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
          self.verticalLayout.setContentsMargins(0, 0, 0, 0)
          self.verticalLayout.setObjectName(&quot;verticalLayout&quot;)
          
          self.verticalLayout.addWidget(self.mapWidget)
          self.map = L.map(self.mapWidget)
          self.map.setView([12.97, 77.59], 10)
          self.map.clicked.connect(self.save)
          
          L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(self.map)
          self.marker = L.marker([12.934056, 77.610029])
          self.marker.bindPopup('Maps are a treasure.')
          self.map.addLayer(self.marker)
          self.pushButton = QtWidgets.QPushButton(self.centralwidget)
          self.pushButton.setGeometry(QtCore.QRect(620, 560, 81, 31))
          self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
          self.pushButton.setObjectName(&quot;pushButton&quot;)
          self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
          self.pushButton_2.setGeometry(QtCore.QRect(730, 560, 91, 31))
          self.pushButton_2.setObjectName(&quot;pushButton_2&quot;)
          MainWindow.setCentralWidget(self.centralwidget)
          self.menubar = QtWidgets.QMenuBar(MainWindow)
          self.menubar.setGeometry(QtCore.QRect(0, 0, 1256, 21))
          self.menubar.setObjectName(&quot;menubar&quot;)
          self.menufile = QtWidgets.QMenu(self.menubar)
          self.menufile.setObjectName(&quot;menufile&quot;)
          self.menuload = QtWidgets.QMenu(self.menufile)
          self.menuload.setObjectName(&quot;menuload&quot;)
          MainWindow.setMenuBar(self.menubar)
          self.statusbar = QtWidgets.QStatusBar(MainWindow)
          self.statusbar.setObjectName(&quot;statusbar&quot;)
          MainWindow.setStatusBar(self.statusbar)
          self.actionnew = QtWidgets.QAction(MainWindow)
          self.actionnew.setObjectName(&quot;actionnew&quot;)
          self.actionnull = QtWidgets.QAction(MainWindow)
          self.actionnull.setObjectName(&quot;actionnull&quot;)
          self.menuload.addAction(self.actionnull)
          self.menufile.addAction(self.actionnew)
          self.menufile.addAction(self.menuload.menuAction())
          self.menubar.addAction(self.menufile.menuAction())
  
          self.retranslateUi(MainWindow)
          QtCore.QMetaObject.connectSlotsByName(MainWindow)
  
      def retranslateUi(self, MainWindow):
          _translate = QtCore.QCoreApplication.translate
          MainWindow.setWindowTitle(_translate(&quot;MainWindow&quot;, &quot;MainWindow&quot;))
          self.pushButton.setText(_translate(&quot;MainWindow&quot;, &quot;start&quot;))
          self.pushButton_2.setText(_translate(&quot;MainWindow&quot;, &quot;done&quot;))
          self.menufile.setTitle(_translate(&quot;MainWindow&quot;, &quot;file&quot;))
          self.menuload.setTitle(_translate(&quot;MainWindow&quot;, &quot;load&quot;))
          self.actionnew.setText(_translate(&quot;MainWindow&quot;, &quot;new&quot;))
          self.actionnull.setText(_translate(&quot;MainWindow&quot;, &quot;null&quot;))
          
      @pyqtSlot(dict)
      def save(self, path):
          self.a=path
          print(self.a['latlng']['lat'])
  
  if __name__ == &quot;__main__&quot;:
      import sys
      app = QtWidgets.QApplication(sys.argv)
      MainWindow = QtWidgets.QMainWindow()
      ui = Ui_MainWindow()
      ui.setupUi(MainWindow)
      MainWindow.show()
      sys.exit(app.exec_())
  </code></pre>