Hi to all!

I've created combo box on some widget with:
Qt Code:
  1. m_pDatabaseSelector=new QComboBox(this); // creates new combo box
  2. Q_CHECK_PTR(m_pDatabaseSelector); // checks creation
To copy to clipboard, switch view to plain text mode 
and then fill it with:
Qt Code:
  1. m_pDatabaseSelector->addItem(strdbType); // adds db type to combo box
  2. m_pDatabaseSelector->addItem("ODBC"); // adds db type to combo box
  3. m_pDatabaseSelector->addItem("SQLite"); // adds db type to combo box
To copy to clipboard, switch view to plain text mode 
Combo box is shown and all item are in it as should be. Now, I've connected data selection signal with my slot:
Qt Code:
  1. connect(m_pDatabaseSelector,
  2. SIGNAL(currentIndexChanged(int)),
  3. this,
  4. SLOT(itemChanged(int))); // signal connector
To copy to clipboard, switch view to plain text mode 
and here the code for itemChanged(int):
Qt Code:
  1. void CDatabaseSettingsPage::itemChanged(int iSelectedIndex)
  2. {
  3. qDebug() << "iSelectedIndex:" << iSelectedIndex;
  4. qDebug() << "m_pDatabaseSelector->itemData(iSelectedIndex).toString():" << m_pDatabaseSelector->itemData(iSelectedIndex).toString();
  5. m_pAppSettings->updateRecord(databaseSettingKey,
  6. strDatabaseTypeKey,
  7. m_pDatabaseSelector->itemData(iSelectedIndex).toString());
  8. }
To copy to clipboard, switch view to plain text mode 
Well, itemData() returns empty string, iSelectedIndex is correclty setup. Why??