QDockWidget * dok = new QDockWidget;
dok->setFeatures(QDockWidget::AllDockWidgetFeatures); //指定停靠窗体的样式,此处为可移动AllDockWidgetFeatures
dok->setAllowedAreas(Qt::AllDockWidgetAreas);
chatwindow * dokwind = new chatwindow("dok");
dok->setWidget(dokwind);
w.addDockWidget(Qt::RightDockWidgetArea,dok);
dok = new QDockWidget;
dok->setFeatures(QDockWidget::AllDockWidgetFeatures); //指定停靠窗体的样式,此处为可移动AllDockWidgetFeatures
dok->setAllowedAreas(Qt::AllDockWidgetAreas);
dokwind = new chatwindow("dok");
dok->setWidget(dokwind);
w.addDockWidget(Qt::RightDockWidgetArea,dok);
QDockWidget用法
最新推荐文章于 2024-05-17 15:23:50 发布