Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2
-
None
-
01140c6c47ab073ffd35f4534f2222dd38f29127
Description
in qwindowsstyle.cpp there is a code
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(NONCLIENTMETRICS);
if (SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0))
ret = qMax(ncm.iScrollHeight, ncm.iScrollWidth);
it doesn't work on Windows XP, because the QT code was compiled with WINVER=0x0600.
I suggest use GetSystemMetrics(SM_CYHSCROLL) and SM_CYVSCROLL instead.