我现在想用actived(QString )获取参数到set(QString text)里面,具体怎么写呢,我现在这样,但无法穿进参数啊
- private slots:
- void setMajor(const QString &text);
- connect(ui->college_comboBox,SIGNAL(currentIndexChanged(const QString &)),this,SLOT(setMajor(const QString &)));
- void IntervieweeConsole::setMajor(const QString &text)
- {
- qDebug()<<text;
- }
参数显示不出来的
顺便问一句 currentIndexChanged和avtived区别到底是什么呢