求助,请问qt里面我写了一个槽函数,运行程序是,怎么没反应额 10
voidQtGuiApplication4::Standardslot(){if(ui->comboBox->currentIndex()==1)G=1;elseif(u...
void QtGuiApplication4::Standardslot()
{
if (ui->comboBox->currentIndex() == 1) G = 1;
else if (ui->comboBox->currentIndex() == 2) G = 2;
else if (ui->comboBox->currentIndex() == 3) G = 3;
else if (ui->comboBox->currentIndex() == 4) G = 4;
}这个是槽函数
if (G = 1) part->SetFileName("standard_ankle.stl");
else if (G = 2) part->SetFileName("standard_elbow.stl");
else if (G = 3) part->SetFileName("standard_wrist.stl");
else if (G = 4) part->SetFileName("standard_wrist_st.stl");
为啥只能看到第一个文件额 展开
{
if (ui->comboBox->currentIndex() == 1) G = 1;
else if (ui->comboBox->currentIndex() == 2) G = 2;
else if (ui->comboBox->currentIndex() == 3) G = 3;
else if (ui->comboBox->currentIndex() == 4) G = 4;
}这个是槽函数
if (G = 1) part->SetFileName("standard_ankle.stl");
else if (G = 2) part->SetFileName("standard_elbow.stl");
else if (G = 3) part->SetFileName("standard_wrist.stl");
else if (G = 4) part->SetFileName("standard_wrist_st.stl");
为啥只能看到第一个文件额 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询