定义了一个显示语言种类的combo box,希望根据选择切换语言,连接了信号但没有反应。
combo_selLang = new QComboBox(this);
myui* my_wizard = (myui*)this->wizard();
QObject::connect(combo_selLang, SIGNAL(currentIndexChanged(int)), my_wizard, SLOT(UpdateUI(int)));
myui是一个wizard的子类,combo_selLang定义在wizardpage里面,我希望选择combo_selLang触发myui里的UpdateUI函数,望各位大侠帮助,不胜感激!