I want change botton color, with click on it.
like picture under.
dokme.gif
my code:
Qt Code:
import QtQuick 2.0 import QtQuick.Controls 1.1 Item { width: 100; height: 100 property bool bImgChange: true Component.onCompleted: { for (var i = 0; i < 5; i++) repeater.append({"name": i}) } Row { Repeater { model: ListModel { id: repeater } Button { id:dokme y:20 width:20 height:20 Text{ text:name anchors.centerIn: parent } } } } }To copy to clipboard, switch view to plain text mode
Bookmarks