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:
cb_info->AddItem("A");
cb_info->AddItem("B");
cb_info->AddItem("C");
cb_info->AddItem("A");
cb_info->AddItem("B");
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:
myLabel->setText(field("Info_combo").toString());
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.
Bookmarks