本文整理汇总了C++中QDockWidget::setShown方法的典型用法代码示例。如果您正苦于以下问题:C++ QDockWidget::setShown方法的具体用法?C++ QDockWidget::setShown怎么用?C++ QDockWidget::setShown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDockWidget
的用法示例。
在下文中一共展示了QDockWidget::setShown方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QMainWindow
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent), bonjourResolver(0)
{
qDebug() << "NUview is starting in: MainWindow.cpp";
debug.open("debug.log");
errorlog.open("error.log");
m_platform = new NUPlatform(); // you could make the arguement that NUView should have its own platform, for now we just use a 'blank' one
m_blackboard = new NUBlackboard();
m_blackboard->add(new NUSensorsData());
m_blackboard->add(new NUActionatorsData());
m_blackboard->add(new FieldObjects());
m_blackboard->add(new JobList());
m_blackboard->add(new GameInformation(0, 0));
m_blackboard->add(new TeamInformation(0, 0));
m_nuview_io = new NUviewIO();
// create mdi workspace
mdiArea = new QMdiArea(this);
mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
createActions();
createMenus();
createContextMenu();
createToolBars();
createStatusBar();
sensorDisplay = new SensorDisplayWidget(this);
QDockWidget* sensorDock = new QDockWidget("Sensor Values");
sensorDock->setObjectName("Sensor Values");
sensorDock->setWidget(sensorDisplay);
sensorDock->setShown(false);
addDockWidget(Qt::RightDockWidgetArea,sensorDock);
// Add localisation widget
localisation = new LocalisationWidget(this);
addDockWidget(Qt::BottomDockWidgetArea,localisation);
localisation->setVisible(false);
// Add Vision Widgets to Tab then Dock them on Screen
visionTabs = new QTabWidget(this);
layerSelection = new LayerSelectionWidget(mdiArea,this);
visionTabs->addTab(layerSelection,layerSelection->objectName());
classification = new ClassificationWidget(this);
visionTabs->addTab(classification,classification->objectName());
visionTabDock = new QDockWidget("Vision");
visionTabDock->setWidget(visionTabs);
visionTabDock->setObjectName(tr("visionTab"));
addDockWidget(Qt::RightDockWidgetArea, visionTabDock);
// Add Network widgets to Tabs then dock them on Screen
networkTabs = new QTabWidget(this);
connection = new ConnectionWidget(this);
networkTabs->addTab(connection, connection->objectName());
walkParameter = new WalkParameterWidget(mdiArea, this);
kick = new KickWidget(mdiArea, this);
networkTabs->addTab(walkParameter, walkParameter->objectName());
networkTabs->addTab(kick, kick->objectName());
VisionStreamer = new visionStreamWidget(mdiArea, this);
LocWmStreamer = new locwmStreamWidget(mdiArea, this);
networkTabs->addTab(VisionStreamer, VisionStreamer->objectName());
networkTabs->addTab(LocWmStreamer, LocWmStreamer->objectName());
cameraSetting = new cameraSettingsWidget(mdiArea, this);
networkTabs->addTab(cameraSetting, cameraSetting->objectName());
//networkTabs->addTab(kick, kick->objectName());
networkTabDock = new QDockWidget("Network");
networkTabDock->setWidget(networkTabs);
networkTabDock->setObjectName(tr("networkTab"));
addDockWidget(Qt::RightDockWidgetArea, networkTabDock);
frameInfo = new frameInformationWidget(this);
QDockWidget* temp = new QDockWidget(this);
temp->setWidget(frameInfo);
temp->setObjectName("Frame Information Dock");
temp->setWindowTitle(frameInfo->windowTitle());
addDockWidget(Qt::RightDockWidgetArea,temp);
createConnections();
setCentralWidget(mdiArea);
qDebug() << "Main Window Starting";
setWindowTitle(QString("NUview"));
glManager.clearAllDisplays();
qDebug() << "Display Cleared";
readSettings();
qDebug() << "Main Window Started";
//glManager.writeWMBallToDisplay(100,100,30,GLDisplay::CalGrid);
glManager.writeCalGridToDisplay(GLDisplay::CalGrid);
//
//glManager.writeCalGridToDisplay(GLDisplay::CalGrid);
//
}