在for循环里创建 widget,比如test类
不能使用 test t;
而要使用 test t = new test();
for (i=0;i<=3;i++)
{
QPushButton* p = new QPushButton(t2);
p->setGeometry(i*100,100,100,100);
}
在for循环里创建 widget,比如test类
不能使用 test t;
而要使用 test t = new test();
for (i=0;i<=3;i++)
{
QPushButton* p = new QPushButton(t2);
p->setGeometry(i*100,100,100,100);
}
该资源仅限VIP专享下载