title: What is the mistake in this code
body: <p>can you geeks can tell me the solution for this,</p>
  
  <p>i have a listview, when i tap on any item,a pop-up list should appear, after that based on the selected item from pop-up list i will update my UI.</p>
  
  <p>i have written a code to get the popup list after tapping on any item from my view.</p>
  
  <p>my problem is once i tap on any item, will get a popup list and i will also be able to select the item from popup list. once i press Ok in popup list i will ge a list with combo box also, i dont no what is wrong..
  here is my code to get the popup list, please assist me where i am wrong</p>
  
  <pre><code>void myPopupWindow::Popupdialog()
      {
        QInputDialog inputdialog;
        QStringList items;
               items &lt;&lt; tr("Spring") &lt;&lt; tr("Summer");
  
  
       // bool val = QObject::connect(inputdialog,SIGNAL(textValueChanged(const QString &amp;text)),this,SLOT(selText( const QString &amp; text )));
             bool val =  QObject::connect(&amp;inputdialog,SIGNAL(textValueChanged(const QString &amp;)),this,SLOT(selText(const QString &amp;)));
  
             bool ok;
  
             inputdialog.setOptions(QInputDialog::UseListViewForComboBoxItems);
             inputdialog.setComboBoxItems(items);
             inputdialog.exec();
  
             QString item = inputdialog.getItem(this,        tr("QInputDialog::getItem()"),tr("Season:"), items, 0, false, &amp;ok);
  
  
      }
  </code></pre>