mirror of
https://github.com/gamecreature/QtAwesome.git
synced 2025-12-16 19:57:03 +03:00
33 lines
686 B
QML
33 lines
686 B
QML
import QtQuick 6.0
|
|
import QtQuick.Controls 6.0
|
|
import QtQuick.Layouts 6.0
|
|
|
|
ApplicationWindow
|
|
{
|
|
visible: true
|
|
width: 640
|
|
height: 480
|
|
title: qsTr("QtAwesome Sample")
|
|
|
|
RowLayout {
|
|
spacing: 10
|
|
|
|
Image {
|
|
width: 64
|
|
height: 64
|
|
source: "image://fa/regular/thumbs-up"
|
|
}
|
|
Image {
|
|
width: 64
|
|
height: 64
|
|
source: mouseArea.containsMouse ? "image://fa/solid/user-tie?color=FF00AA" : "image://fa/solid/user?color=22FF44"
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|