Important: Please read the Qt Code of Conduct -

Artefacts in QImage on Mac OS X

  • Hi all,

    I see strange artefacts in a QImage when lines are drawn on a light background. A screen shot is here: - note that brown lines on green bg look fine...

    The effect occurs in QLandkarte GT [1] on Mac OS X 10.5, and seems not to be related to the type of graphics card used (both ATI and NVIDIA show the issue). Also, no user reported a similar problem for the Linux or for the Windows versions of the application. On my old PowerMac G4 running Mac OS X 10.4 (ATI graphics), the graphics looks also fine. I didn't receive and complaints from users running Mac OS X 10.6, so it may or may not work properly there.

    The underlying Qt version used for the Mac version is 4.6.3 on all systems. The code used to draw the image is basically (quoting the application's author, "buffer" is a QImage):

    void CMapTDB::draw()
    QPainter p(&buffer);
    USE_ANTI_ALIASING(p,!doFastDraw && CResources::self().useAntiAliasing());

    Any help to fix this bug would be appreciated!



    [EDIT: fixed code formatting, pleas use @-tags, Volker]

  • Moderators

    The first step to get a bug fixed would of course be to report it in the "Qt bug tracker":

    Some sample application or test case is always appreciated as it makes working on the issue so much easier.

Log in to reply