16,229
社区成员
发帖
与我相关
我的任务
分享
void Ch_Find_Lvl::Make_Button()
{
for(int i =0; i <1; i++)
{
QLabel label(this);
label.setText("Err");
label.move(50,50);
label.show();
Genre_Button *lvl_button = new Genre_Button(this, "file_name");
lvl_button->move(10, 100);
lvl_button->show();
}
}
QLabel *label = 0;
QPushButton *button = 0;
for(int i=0; i<5; i++){
label = new QLabel(tr("label%1").arg(i), this);
button = new QPushButton(tr("button%1").arg(i), this);
label->move(i * 100 + 5, 35);
button->move(i* 100 + 5, 60);
label->show();
button->show();
}