Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Antialiasing with QtQuick 2.0 and canvas
Qt 6.11 is out! See what's new in the release blog

Antialiasing with QtQuick 2.0 and canvas

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 2.7k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    spompelio
    wrote on last edited by
    #1

    When drawing with Canvas, lines and text isn't being rendered with antialiasing. I've added the "smooth: true" and "antialiasing: true" properties to the canvas item but no luck. Anyone else having this issue? None of the canvas examples in qt-declarative (quick 2.0) render with antialiasing either.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      admiralfluff
      wrote on last edited by
      #2

      What system are you running? I have this problem on an ubuntu vm and debian on Raspberry Pi. On OSX however, it works fine. Anti-aliasing in Canvas isn't actually handled by the canvas or Qt renderer, it's handled by the system graphics. I think the problem is likely on the Qt side though, as web pages with canvas are rendered correctly.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        spompelio
        wrote on last edited by
        #3

        Ubuntu 12.04/64bit. The issue could be my cheap intel graphics media accelerator. Every qt opengl demo I run seems to have poor/none antialiasing. However, I also have the same issue on my desktop running an nvidia graphics card so who knows. Is there any way I can force software rendering with QtQuick 2.0 and canvas?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          admiralfluff
          wrote on last edited by
          #4

          Not that I know of, but if you find out how, let me know. :)

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VTiTux
            wrote on last edited by
            #5

            I have the same problem.
            How to enable antialiasing with Canvas?

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved