title: How to add a QInputDialog in pyqt5 and get its value
body: <pre><code>from PyQt5 import QtCore, QtWidgets
  
  
  class Ui_MainWindow(object):
      def setupUi(self, MainWindow):
          MainWindow.setObjectName("MainWindow")
          MainWindow.resize(400, 300)
          self.centralwidget = QtWidgets.QWidget(MainWindow)
          self.centralwidget.setObjectName("centralwidget")
          self.label = QtWidgets.QLabel(self.centralwidget)
          self.label.setGeometry(QtCore.QRect(200, 40, 81, 20))
          self.label.setObjectName("label")
          self.lineedit = QtWidgets.QLineEdit(self.centralwidget)
          self.lineedit.setGeometry(QtCore.QRect(270, 40, 113, 20))
          self.lineedit.setObjectName("lineedit")
          MainWindow.setCentralWidget(self.centralwidget)
          self.retranslateUi(MainWindow)
          QtCore.QMetaObject.connectSlotsByName(MainWindow)
  
      def retranslateUi(self, MainWindow):
          _translate = QtCore.QCoreApplication.translate
          MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
          self.label.setText(_translate("MainWindow", "label1:"))
  
  
  if __name__ == "__main__":
      import sys
  
      app = QtWidgets.QApplication(sys.argv)
      MainWindow = QtWidgets.QMainWindow()
      ui = Ui_MainWindow()
      ui.setupUi(MainWindow)
      MainWindow.show()
      sys.exit(app.exec_())
  </code></pre>
  
  <p>I want to have a QInputDialog under my lineedit, so I can choose from "yes" or "no"from the input dialog, how to I put it into my code?</p>
  
  <p>ALso how do I get the value of the inputdialog?</p>
  
  <p>Thanks!</p>