Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Artefacts in QImage on Mac OS X

    General and Desktop
    2
    2
    2503
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      albrecht.dress last edited by

      Hi all,

      I see strange artefacts in a QImage when lines are drawn on a light background. A screen shot is here: http://www.mynetcologne.de/~nc-dreszal/qt_macosx_artefacts.png - 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()
      {
      buffer.fill(Qt::transparent);
      QPainter p(&buffer);
      [...]
      USE_ANTI_ALIASING(p,!doFastDraw && CResources::self().useAntiAliasing());
      [...]
      }
      @

      Any help to fix this bug would be appreciated!

      Best,
      Albrecht.

      [1] http://www.qlandkarte.org/

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

      1 Reply Last reply Reply Quote 0
      • T
        tobias.hunger last edited by

        The first step to get a bug fixed would of course be to report it in the "Qt bug tracker":http://bugreports.qt.nokia.com/.

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post