本文整理汇总了C++中QSplitter::sizePolicy方法的典型用法代码示例。如果您正苦于以下问题:C++ QSplitter::sizePolicy方法的具体用法?C++ QSplitter::sizePolicy怎么用?C++ QSplitter::sizePolicy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QSplitter
的用法示例。
在下文中一共展示了QSplitter::sizePolicy方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sizePolicy
//****************************************************************************
MainWindow::MainWindow (QWidget* parent, Qt::WFlags fl)
{
// Setup the QRAP error handling system
QRAP_SET_ALERT_CALLBACK((AlertCallback)(Qrap::MainWindowAlert));
CreateActions();
CreateMenus();
CreateToolBars();
CreateStatusBar();
ReadSettings();
// Create the clipboard
clipboard = QApplication::clipboard();
// Set the window title
setWindowTitle("Q-Rap Database Interface");
setWindowIcon(QIcon(":images/logo_icon.png"));
// Check if there are any system preferences
if(gDb.GetSetting("location")=="")
{
// gDb.SetSetting("location","DD.dddd");
gDb.SetSetting("sensitivity","dBm");
gDb.SetSetting("power","dBm");
gDb.SetSetting("eirp","dBm");
gDb.SetSetting("impedence","50");
gDb.SetSetting("predictioneirp","explicit");
gDb.SetSetting("location","DD:MM:SS");
gDb.SetSetting("mode","normal");
gDb.SetSetting("DisplayUnits","dBm");
gDb.SetSetting("TechType","0:NULL");
gDb.SetSetting("RqSN","8.00");
gDb.SetSetting("FadeMargin","3.00");
gDb.SetSetting("RxMin","-110.00");
gDb.SetSetting("RqCiCo","9.00");
gDb.SetSetting("RqCiad","-9.00");
gDb.SetSetting("RqEbNo","8.00");
gDb.SetSetting("kFactorServer","1.00");
gDb.SetSetting("kFactorInt","2.5");
gDb.SetSetting("UseClutter","false");
gDb.SetSetting("BTLDir","/home/");
gDb.SetSetting("OutputDir","/home");
gDb.SetSetting("SiteSelectSense","150.00");
gDb.SetSetting("PlotResolution","90.00");
gDb.SetSetting("DownLink","true");
} // if GetSetting(location)
// QWidget* gridLayout_1 = new QWidget(this);
// gridLayout_1->setObjectName(QString::fromUtf8("gridLayout_1"));
//gridLayout_1->setGeometry(QRect(0,70,790,180));
// setCentralWidget(gridLayout_1);
// QGridLayout* gridLayout1 = new QGridLayout(gridLayout_1);
// gridLayout1->setSpacing(6);
// gridLayout1->setMargin(0);
// gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
sizePolicy.setHorizontalStretch(200);
sizePolicy.setVerticalStretch(200);
QSplitter* splitter;
splitter = new QSplitter(this);
splitter->setObjectName(QString::fromUtf8("splitter"));
splitter->setOrientation(Qt::Horizontal);
splitter->setOpaqueResize(true);
splitter->setSizePolicy(sizePolicy);
sizePolicy.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
setCentralWidget(splitter);
rapTab = new RapTab(splitter);
rapTab->setGeometry(QRect(10,10,1550,450));
rapTab->setMinimumSize(QSize(100, 100));
rapTab->setSizePolicy(sizePolicy);
splitter->addWidget(rapTab);
Filter = new cFilter(splitter);
Filter->setGeometry(QRect(10,10,350,450));
Filter->setMinimumSize(QSize(100, 100));
Filter->setSizePolicy(sizePolicy);
splitter->addWidget(Filter);
setMaximumHeight(700);
showMaximized ();
// QSpacerItem *spacerItem1 = new QSpacerItem(1, 90, QSizePolicy::Minimum, QSizePolicy::Minimum);
// gridLayout1->addItem(spacerItem1, 0, 1, 1, 1);
// QSpacerItem *spacerItem = new QSpacerItem(1, 400, QSizePolicy::Minimum, QSizePolicy::Maximum);
// gridLayout1->addItem(spacerItem, 1, 1, 1, 1);
// Create the main widget
// CreateDockingTab(Body);
}