[QML開發筆記]-QML窗體透明
QML窗體透明功能實現
效果:
代碼:
main.qml
import QtQuick 2.12
import QtQuick.Window 2.12
/**
* @FileName main.qml
* @brief File Description
* @author Kongdemin
* @date 2020-05
*/
Window {
visible: true
width: 640
height: 480
title: qsTr("QML窗體透明")
color: 'transparent'
Text {
id: text
anchors.centerIn: parent
font.pointSize: 22
color: '#d35400'
text: qsTr("QML窗體透明")
}
}