Index: lcl/interfaces/qt/qtwidgets.pas
===================================================================
--- lcl/interfaces/qt/qtwidgets.pas	(revision 14586)
+++ lcl/interfaces/qt/qtwidgets.pas	(working copy)
@@ -327,7 +327,7 @@
   
   TQtViewPort = class(TQtWidget)
   public
-    function getClientBounds: TRect; override;
+    //function getClientBounds: TRect; override;
     function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl; override;
   end;
   
@@ -6969,6 +6969,7 @@
 
 { TQtViewPort }
 
+{
 function TQtViewPort.getClientBounds: TRect;
 begin
   Result := inherited getClientBounds;
@@ -6973,6 +6974,7 @@
 begin
   Result := inherited getClientBounds;
 end;
+}
 
 function TQtViewPort.EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl;
 begin
@@ -7248,18 +7250,13 @@
 
 function TQtAbstractScrollArea.getClientBounds: TRect;
 begin
-  if LCLObject is TCustomControl then
-    Result := viewport.getClientBounds
-  else
-  begin
-    Result := inherited getClientBounds;
+  Result := inherited getClientBounds;
 
-    if (verticalScrollBar.getVisible) then
-      dec(Result.Right, verticalScrollBar.getWidth);
+  if (verticalScrollBar.getVisible) then
+    dec(Result.Right, verticalScrollBar.getWidth);
 
-    if (horizontalScrollBar.getVisible) then
-      dec(Result.Bottom, horizontalScrollBar.getHeight);
-  end;
+  if (horizontalScrollBar.getVisible) then
+    dec(Result.Bottom, horizontalScrollBar.getHeight);
 end;
 
 procedure TQtAbstractScrollArea.grabMouse;
