Hi,

I'm making a GUI app with a QWizard and QWizardPages structure.

In the first page I have a combobox (cb_info1) with some items:
Qt Code:
  1. cb_info->AddItem("A");
  2. cb_info->AddItem("B");
  3. cb_info->AddItem("C");
To copy to clipboard, switch view to plain text mode 

Then I register it using: registerField("Info_combo", cb_info);

And finally in page2, I want to show which option was selected(if A, B or C) showing the info on a label:

Qt Code:
  1. myLabel->setText(field("Info_combo").toString());
To copy to clipboard, switch view to plain text mode 


If option A was selected, myLabel should show (or at least is want I am trying to): A
But instead of that it shows '0' which I suppose its the index of the item selected of the Combobox.

How can I make that the label shows "A" instead of the index ?

Thank you.