mainLayout->addWidget(signEdit, 4, 1, 1, 5); QWidget *subWidget = new QWidget(this); QHBoxLayout *subLayout = new QHBoxLayout(subWidget); subLayout->setMargin(0); subLayout->addWidget(m_outputFileNameEdit); subLayout->addWidget(fileNameBtn); mainLayout->addWidget(subWidget, 3, 1, 1, 5); // m_buttonBox
Math.PI); m_vis.putAction("treeLayout", treeLayout); CollapsedSubtreeLayout subLayout = new CollapsedSubtreeLayout(tree);//折叠子树布局 m_vis.putAction("subLayout", subLayout); TreeRootAction(tree)); filter.add(fonts); filter.add(treeLayout); filter.add(subLayout = new CollapsedSubtreeLayout(tree, m_orientation); m_vis.putAction("subLayout", subLayout); AutoPanAction autoPan = new AutoPanAction(); // create
delete m_panel; 30 delete m_quitBtn; 31 delete m_saveAsBtn; 32 33 delete vlayout; // the sublayout
setTickLabelColor(QColor("#6050F8")); // add an extra axis on the left and color its numbers QCPLayoutGrid *subLayout (0, 0, wideAxisRect); // insert axis rect in first row customPlot->plotLayout()->addElement(1, 0, subLayout customPlot->plotLayout()->setRowStretchFactor(1, 2); // prepare axis rects that will be placed in the sublayout means to not setup default axes QCPAxisRect *subRectRight = new QCPAxisRect(customPlot, false); subLayout ->addElement(0, 0, subRectLeft); subLayout->addElement(0, 1, subRectRight); subRectRight->setMaximumSize