Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Cannot set an image background in a Button (qt quick controls)

$
0
0
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?

Viewing all articles
Browse latest Browse all 4972

Trending Articles