title: How can I detect the change of value in a QInputDialog?
body: <p>I want to print the value when changing the value of the dialog called by the <code>getInt</code> method of <code>QInputDialog</code>.</p>
  
  <p>I run the below code, but it is not working:</p>
  
  <pre><code>import sys
  from PyQt5.QtCore import Slot
  from PyQt5.QtWidgets import QApplication, QInputDialog
  
  @Slot(int)
  def int_value_changed(val):
      print(val)
  
  if 'qapp' not in globals():
      qapp = QApplication(sys.argv)
  
  dlg = QInputDialog(None)
  dlg.intValueChanged.connect(int_value_changed)
  
  dlg.getInt(None, 'title', 'Type Value', 0)
  </code></pre>