qFrame
->setFrameRect
( QRect( 0,
0,
0,
0 ) );
// Checkbox in frame
m_onlineChk
= new QCheckBox( "Show Online Table ", qFrame
);
m_onlineChk->setToolTip( "Show/Hide Online Table" );
connect( m_onlineChk, SIGNAL( clicked() ), this, SLOT( onlineClicked() ) );
m_onlineChk->setCheckState( Qt::Checked );
frameLayout
->setSizeConstraint
( QLayout::SetMaximumSize );
frameLayout->addWidget( m_onlineChk, 0, Qt::AlignRight );
frameLayout->insertStretch( 0, 0 );
qFrame->setLayout( frameLayout );
// Configuration Table is 1st
m_centralLayout->addWidget( m_cfgGroupBox, 1, 0, 1, 2 );
m_centralLayout->setRowMinimumHeight( 1, 300 );
// Online Table is in middle
m_centralLayout->addWidget(m_olnGroupBox, 2, 0, 1, 2);
m_centralLayout->setRowMinimumHeight( 2, 300 );
// Frame is on bottom (just above the status bar)
m_centralLayout->addWidget( qFrame, 3, 0, 1, 2 );
m_centralLayout->setRowMinimumHeight( 3, 30 );
QFrame* qFrame = new QFrame( this );
qFrame->setFrameRect( QRect( 0, 0, 0, 0 ) );
qFrame->setFrameStyle( QFrame::Box | QFrame::Plain );
// Checkbox in frame
m_onlineChk = new QCheckBox( "Show Online Table ", qFrame );
m_onlineChk->setToolTip( "Show/Hide Online Table" );
connect( m_onlineChk, SIGNAL( clicked() ), this, SLOT( onlineClicked() ) );
m_onlineChk->setCheckState( Qt::Checked );
QHBoxLayout* frameLayout = new QHBoxLayout( qFrame );
frameLayout->setSizeConstraint( QLayout::SetMaximumSize );
frameLayout->addWidget( m_onlineChk, 0, Qt::AlignRight );
frameLayout->insertStretch( 0, 0 );
qFrame->setLayout( frameLayout );
m_centralLayout = new QGridLayout;
// Configuration Table is 1st
m_centralLayout->addWidget( m_cfgGroupBox, 1, 0, 1, 2 );
m_centralLayout->setRowMinimumHeight( 1, 300 );
// Online Table is in middle
m_centralLayout->addWidget(m_olnGroupBox, 2, 0, 1, 2);
m_centralLayout->setRowMinimumHeight( 2, 300 );
// Frame is on bottom (just above the status bar)
m_centralLayout->addWidget( qFrame, 3, 0, 1, 2 );
m_centralLayout->setRowMinimumHeight( 3, 30 );
To copy to clipboard, switch view to plain text mode
// Tab widget is 1st
m_centralLayout->addWidget( m_tabWidget, 1, 0, 1, 1);
m_centralLayout->setRowMinimumHeight( 1, 300 );
// Frame is on bottom (just above the status bar)
m_centralLayout->addWidget( qFrame, 2, 0, 1, 1 );
m_centralLayout->setRowMinimumHeight( 2, 30 );
m_pCentralWidget->setLayout( m_centralLayout );
m_centralLayout = new QGridLayout;
// Tab widget is 1st
m_centralLayout->addWidget( m_tabWidget, 1, 0, 1, 1);
m_centralLayout->setRowMinimumHeight( 1, 300 );
// Frame is on bottom (just above the status bar)
m_centralLayout->addWidget( qFrame, 2, 0, 1, 1 );
m_centralLayout->setRowMinimumHeight( 2, 30 );
m_pCentralWidget->setLayout( m_centralLayout );
To copy to clipboard, switch view to plain text mode
Bookmarks