求大神告知!还有下面这个是语言切换,可以有点看不明白啊!有大神给讲解一下么?
connect( m_pActionChinese, SIGNAL( triggered() ), this, SLOT( slotChinese() ) );
下面的函数不是很明白
void SecurGuards::slotChinese()
{ int index =ui->stackedWidget->currentIndex();
QApplication::removeTranslator( m_pTranslator );
m_pTranslator->load( "./translations/en.qm" );
QApplication::installTranslator( m_pTranslator );
this->ui->retranslateUi( this );
updateText();
setIndex(index);
}