QWizard and default property
Unsolved
General and Desktop
-
wrote on 18 Jan 2016, 09:14 last edited by
Hi
I have a class derived from QWizard.
In the constructor for this class I have the following linesetDefaultProperty("QComboBox","currentText","currentIndexChanged");
In my wizard page I have the following
registerField("toolSystemComboBox", ui->m_toolSystemComboBox);
But when I retrieve the field value it is using the current index of the combox box and not the current text
QString s = field("toolSystemComboBox").toString(); // makes s equal the position in the combo box
can anyone suggest what I have missed?
Thanks
-
wrote on 18 Jan 2016, 10:34 last edited by ValentinMichelet
setDefaultProperty("QComboBox","currentText","currentTextChanged");
-
wrote on 18 Jan 2016, 10:45 last edited by
Hi
Thanks for the reply, however I am trying to set the default property for combo boxes to currentText -
wrote on 18 Jan 2016, 11:51 last edited by
Hi
Unfortunately this gives me the same result -
wrote on 18 Jan 2016, 12:36 last edited by
This is weird. Could you show me the source code please? so I can test it and try to figure it out.
4/5