 <p>This is my OK code in QT 4.7:</p> <pre><code> //add combobox list QString val; ui-&gt;startPage-&gt;clear(); val = "http://www.work4blue.com"; ui-&gt;startPage-&gt;addItem(tr("Navigation page"),QVariant::fromValue(val)); val = "https://www.google.com"; ui-&gt;startPage-&gt;addItem("www.google.com",QVariant::fromValue(val)); val = "www.twitter.com"; ui-&gt;startPage-&gt;addItem("www.twitter.com",QVariant::fromValue(val)); val = "https://www.youtube.com"; ui-&gt;startPage-&gt;addItem("www.youtube.com",QVariant::fromValue(val)); // get current value qDebug() &lt;&lt; "current value"&lt;&lt; ui-&gt;startPage-&gt;itemData(ui-&gt;startPage-&gt;currentIndex()).toString(); </code></pre>