Improve layout of radioboxes in horizontal sizers with expand flag under wxQT

This commit is contained in:
Graham Dawes
2019-01-14 08:06:34 +00:00
parent a823236ac1
commit 4a18bc897d

View File

@@ -178,11 +178,15 @@ bool wxRadioBox::Create(wxWindow *parent,
AddChoices( m_qtButtonGroup, m_qtGridLayout, n, choices, style, majorDim );
QVBoxLayout *qtBoxLayout = new QVBoxLayout;
qtBoxLayout->addLayout(m_qtGridLayout);
qtBoxLayout->addStretch();
QVBoxLayout *vertLayout = new QVBoxLayout;
vertLayout->addLayout(m_qtGridLayout);
vertLayout->addStretch();
m_qtGroupBox->setLayout(qtBoxLayout);
QHBoxLayout *horzLayout = new QHBoxLayout;
horzLayout->addLayout(vertLayout);
horzLayout->addStretch();
m_qtGroupBox->setLayout(horzLayout);
return QtCreateControl( parent, id, pos, size, style, val, name );
}