qt 子窗口内嵌到父窗口

类声明
动态申请子窗口类对象

ClassA *a = new ClassA(this);  

隐藏边框

a->setWindowFlags(Qt::CustomizeWindowHint|Qt::FramelessWindowHint);

放到指定位置

a->move(100, 50);

猜你喜欢

转载自blog.csdn.net/zhangxuechao_/article/details/81155132