https://bugs.kde.org/show_bug.cgi?id=411387

--- Comment #13 from Nikolay Zlatev <n...@astrapaging.com> ---
// Find the theme's splitter width + extra space to find valid terminal
// https://doc.qt.io/qt-5/qsplitter.html#handleWidth-prop
// By default, this property contains a value
// that depends on the user's platform and style preferences.
//
// If you set handleWidth to 1 or 0,
// the actual grab area will grow to overlap a few
// pixels of its respective widgets.

const auto handleWidth = parentSplitter->handleWidth() + 3;

P.S.
pixelMetric(QStyle::PM_SplitterWidth)
always returns theme value not actual rendered size

I have tested on Breeze
app->setStyleSheet(QStringLiteral("QSplitter::handle {width: 8px; height: 8px;
border: 1px solid red}"));
in main.cpp

pixelMetric(QStyle::PM_SplitterWidth) returns 1
handleWidth() returns 10 (width+border*2)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to