setWindowFlags(Qt::CustomizeWindowHint|Qt::FramelessWindowHint);
并且我的布局代码也无法生效,各个窗口都是重叠的,没有按照定义的布局
setWindowTitle(tr("网络监控管理"));
showMaximized();//最大化显示
//网络规划
mainNetworkPlanning=new NetworkPlanning();
//地图
mainMap=new Map();
//成员信息显示
mainMemberInformationDisplay=new MemberInformationDisplay();
//消息显示
mainMessageDisplay=new MessageDisplay();
mainNetworkPlanning->show();
mainMap->show();
mainMemberInformationDisplay->show();
mainMessageDisplay->show();
QHBoxLayout *hboxLayout1=new QHBoxLayout();
hboxLayout1->addWidget(mainMap);
hboxLayout1->addWidget(mainMemberInformationDisplay);
QVBoxLayout *vboxLayout1=new QVBoxLayout();
vboxLayout1->addLayout(hboxLayout1);
vboxLayout1->addWidget(mainMemberInformationDisplay);
QHBoxLayout *hboxLayout2=new QHBoxLayout();
hboxLayout2->addWidget(mainNetworkPlanning);
hboxLayout2->addLayout(vboxLayout1);
QVBoxLayout *vboxLayout2=new QVBoxLayout(this);
vboxLayout2->addWidget(ui->tabWidget);
vboxLayout2->addLayout(hboxLayout2);
请指教,谢谢!