title: link QInputDialog text to a variable
body: <p>I googled about 3 hours on the internet but all the examples use input dialog's text with QLineEdit. I want to link the text to a variable to use with my list. </p>
  
  <pre><code>def gettext(self):
        text, ok = QInputDialog.getText(self, 'Text Input Dialog', 'Enter your name:')
  
        if ok:
            else...  
  </code></pre>
  
  <p>What should I do? Here is the function that I want to use.</p>
  
  <p>Thanks!</p>