title: QInputDialog action depending on item selection in ComboBox
body: <p>I have an input dialog (Qt) with three options in a combobox. I would like a different action be launched on the Ok depending on the item which was selected in the combobox. For now, I have</p>
  
  <pre><code>QInputDialog qDialog ;
  
  QStringList items;
  items &lt;&lt; QString("Choice 1");
  items &lt;&lt; QString("Choice 2");
  items &lt;&lt; QString("Choice 3");
  
  qDialog.setOptions(QInputDialog::UseListViewForComboBoxItems);
  qDialog.setComboBoxItems(items);
  qDialog.setWindowTitle("Choose action");
  
  QObject::connect(&amp;qDialog, SIGNAL(textValueChanged(const QString &amp;)), 
             this, SLOT(onCompute(const QString &amp;)));
  
  qDialog.exec();
  </code></pre>
  
  <p>The slot <code>oncompute</code> performs a different action depending on the selected item in the combobox... but this is called when the user selects a new item in the box, not on click on ok.</p>
  
  <p>How can i retrieve the item selected  on the combo box and perform action on click on Ok ?</p>