Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to anti-aliasing SVG image in QML
Forum Updated to NodeBB v4.3 + New Features

How to anti-aliasing SVG image in QML

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 2.4k Views 2 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.
  • C Offline
    C Offline
    canlx
    wrote on last edited by
    #1

    Hi all,
    I want to anti-aliasing SVG image which is loaded to qml. I has already added this attribute as below, but it does not have effect
    RenderStateSet {
    renderStates: [
    MultiSampleAntiAliasing{
    enabled: true
    }
    ]
    }

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Use "smooth" property. https://doc.qt.io/qt-5/qml-qtquick-image.html#smooth-prop

      (Z(:^

      1 Reply Last reply
      2
      • C Offline
        C Offline
        canlx
        wrote on last edited by
        #3

        I mean in Qt 3D, an image has to uploaded by TextureLoader{ }. Therefor, smooth property can not declare in TextureLoader. I have already try to use smooth property but it has no effective.

        sierdzioS 1 Reply Last reply
        0
        • C canlx

          I mean in Qt 3D, an image has to uploaded by TextureLoader{ }. Therefor, smooth property can not declare in TextureLoader. I have already try to use smooth property but it has no effective.

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @canlx said in How to anti-aliasing SVG image in QML:

          I mean in Qt 3D, an image has to uploaded by TextureLoader{ }. Therefor, smooth property can not declare in TextureLoader. I have already try to use smooth property but it has no effective.

          As, sorry, I misunderstood. I have no experience in Qt3D.

          (Z(:^

          C 1 Reply Last reply
          0
          • sierdzioS sierdzio

            @canlx said in How to anti-aliasing SVG image in QML:

            I mean in Qt 3D, an image has to uploaded by TextureLoader{ }. Therefor, smooth property can not declare in TextureLoader. I have already try to use smooth property but it has no effective.

            As, sorry, I misunderstood. I have no experience in Qt3D.

            C Offline
            C Offline
            canlx
            wrote on last edited by
            #5

            @sierdzio No problem bro, thanks for your help.

            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