Review Request 113096: No artifacts when the scrollbars are shown and used to jump to the right or bottom.

Jaime Torres Amate jtamate at
Thu Oct 10 11:32:35 UTC 2013

This is an automatically generated e-mail. To reply, visit:

(Updated Oct. 10, 2013, 11:32 a.m.)

Review request for KDE Edu and Albert Astals Cid.


The problem with the space at the right and bottom of the image seems to be in QGraphicsView.
When a verticalScrollBar is used, around 6 horizontal pixels are automatically added to the scene. (similar case with the horizontalScrollBar)
If I load an image smaller than the screen size, no problem, no scrollbars. When I resize the program only horizontally, (no vertical scrollbar), no white space is added. If a vertical scrollbar appears, here is the white space. (with version 1 or 2 of the patch)
There is nothing I can see to avoid this. I tried to resize the scene based on the presence of scrollbars, and created an infinite loop.

Version 2 of the patch:
Instead of paint the background, add the image (converted to pixmap) to the scene and let Qt draw it.
(before commiting, the commented drawBackground will dissapear, also the red spaces)

Repository: kgeography


Just paint the background white and then draw the image.

Diffs (updated)

  src/mapwidget.h 1211d2c 
  src/mapwidget.cpp 57ab716 



Before: In big maps like Portugal, when the scrollbars appear, and you click in the right part of the scrollbar (or the lowest for vertical), to jump to the lower right corner, you could see rendering artifacts.
Now: No artifacts, just white.

File Attachments

screen capture


Jaime Torres Amate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-edu mailing list