In a qt qml quick project, I’ve this code:
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
…. ….. ….
Button {
id: button1
x: 160
y: 130
width: 50
height: 50
text: ""
iconSource: "../../img/up.png"
}
Compiling, there are no errors or warnings, but the button have no image in background!
Image for the background is 32×32 Png format.
Why it does’no work?
↧