I'm wanting to use a QComboBox as a sort of data storage for my application. It's not a large ammount of data, and I think this would be the easiest way to not be constantly reading from the database file. This little snippit shows what I'm trying to do.

Qt Code:
  1. QStringList dataList;
  2.  
  3. dataList << "D1" << "D2" << "D3";
  4.  
  5. ui->ShowDate->insertItem(0, QDate(query.value(2).toInt(), query.value(0).toInt(),
  6. query.value(1).toInt()).toString(("MMMM d, yyyy")), dataList);
To copy to clipboard, switch view to plain text mode 

I know how to access the text with

Qt Code:
  1. ui->lineEdit->setText(ui->ShowDate->currentText());
To copy to clipboard, switch view to plain text mode 

but how do I access the QVariant?

I'm new to not only Qt, but c++ as well, so a small snippit showing how to put, say dataList[0] into a lable...

Qt Code:
  1. ui->label->setText(<however to get dataList[0] in here>);
To copy to clipboard, switch view to plain text mode 

Qt version 4.5