Fix#60232:Show more label is blocked by scrollbar.

This commit is contained in:
zhangjiaping 2021-06-08 20:06:12 +08:00
parent 5cbb5008c6
commit 92cee68e4b
1 changed files with 3 additions and 2 deletions

View File

@ -81,9 +81,10 @@ void ContentWidget::initUI() {
m_resultDetail = new QWidget(m_resultDetailArea);
m_listLyt = new QVBoxLayout(m_resultList);
m_detailLyt = new QVBoxLayout(m_resultDetail);
m_resultList->setFixedWidth(280);
//需要给滚动条留出16个像素点的宽度
m_resultList->setFixedWidth(280 - 16);
m_resultList->setFixedHeight(0);
m_listLyt->setContentsMargins(0, 0, 12, 0);
m_listLyt->setContentsMargins(0, 0, 0, 0);
m_listLyt->setSpacing(0);
m_resultListArea->setWidget(m_resultList);
m_resultListArea->setWidgetResizable(true);