QWizard and default property



  • Hi
    I have a class derived from QWizard.
    In the constructor for this class I have the following line

    setDefaultProperty("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



  • setDefaultProperty("QComboBox","currentText","currentTextChanged");



  • Hi
    Thanks for the reply, however I am trying to set the default property for combo boxes to currentText



  • Hi
    Unfortunately this gives me the same result



  • This is weird. Could you show me the source code please? so I can test it and try to figure it out.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.