Results 1 to 4 of 4

Thread: Why antialiasing do not working for QML Image?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2017
    Posts
    10
    Qt products
    Qt5
    Platforms
    Windows

    Default Why antialiasing do not working for QML Image?

    Hello!

    This is my code:
    Qt Code:
    1. import QtQuick 2.6
    2. import QtQuick.Window 2.2
    3.  
    4. Window {
    5. visible: true
    6. width: 640
    7. height: 480
    8. title: qsTr("Hello World")
    9.  
    10. Rectangle {
    11. id: r0
    12. anchors.fill: parent
    13. color: "Black"
    14.  
    15. Image {
    16. id: bi
    17. source: "qrc:///3.png"
    18. anchors.centerIn: parent
    19. visible: true
    20. antialiasing: true
    21. }
    22. }
    23. }
    To copy to clipboard, switch view to plain text mode 

    I set antialiasing to true, but my .png on screen has a raggy boundary. Antialiasing do not working! Why?

    My .png:
    3.png

    On screen:
    result.png
    Last edited by svv; 16th March 2017 at 11:22.

Similar Threads

  1. Border-image not working in QWidget?
    By astampor in forum Qt Programming
    Replies: 4
    Last Post: 3rd October 2011, 15:16
  2. Replies: 0
    Last Post: 24th January 2011, 11:12
  3. Replies: 2
    Last Post: 5th May 2010, 06:01
  4. QPainter.drawImage() not working with resource image file
    By thiagoalencar22 in forum Qt Programming
    Replies: 4
    Last Post: 22nd April 2010, 21:07
  5. Best AntiAliasing?
    By beni46 in forum Qwt
    Replies: 2
    Last Post: 2nd February 2010, 13:28

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.