Hello!
This is my code:
import QtQuick 2.6
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Rectangle {
id: r0
anchors.fill: parent
color: "Black"
Image {
id: bi
source: "qrc:///3.png"
anchors.centerIn: parent
visible: true
antialiasing: true
}
}
}
import QtQuick 2.6
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Rectangle {
id: r0
anchors.fill: parent
color: "Black"
Image {
id: bi
source: "qrc:///3.png"
anchors.centerIn: parent
visible: true
antialiasing: true
}
}
}
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
Bookmarks