动态创建widget的注意事项:要show要setgeometry

glarea=new GLArea(this);
glarea->setGeometry(QRect(50, 40, 221, 121));
glarea->show();

猜你喜欢

转载自blog.csdn.net/gaoenyang760525/article/details/105853206