Qt: fixed mouse focus behaviour of TQtCustomControl. issue #36006,#40615

This commit is contained in:
Željan Rikalo 2023-12-03 12:06:27 +01:00
parent 1898a84c34
commit eade19d2bd

View File

@ -2119,7 +2119,7 @@ begin
else
setFocusPolicy(QtNoFocus);
end else
if (Self is TQtTabWidget) then
if (Self is TQtTabWidget) or (Self is TQtCustomControl) then
setFocusPolicy(QtTabFocus)
else
setFocusPolicy(QtClickFocus);