admin管理员组文章数量:1122846
I want to set the panel icon of a custom widget but i can't figure out how. I have the icon that shows in the widget manager (on the left when in edit mode), but the icon in the panel is empty. (Mine is the empty gap on the right)
main.qml
import QtQuick 2.0
import org.kde.plasma.plasmoid
import org.kde.plasmaponents 3.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
PlasmoidItem {
Plasmoid.icon: "sensors-temperature-symbolic"
// PlasmaExtras.Heading {
// anchors.horizontalCenter: parent.horizontalCenter
// text: "Temperature d adfds"
// }
}
metadata.json
{
"KPlugin": {
"Authors": [
{
"Email": "[email protected]",
"Name": "oosh"
}
],
"Category": "System Information",
"Description": "Monitor the system temperature",
"Icon": "sensors-temperature-symbolic",
"Id": "au.oosh.temp-monitor",
"Name": "Temperature Monitor",
"Version": "0.4"
},
"X-Plasma-API": "declarativeappletscript",
"KPackageStructure": "Plasma/Applet",
"X-Plasma-API-Minimum-Version": "6.0"
}
Any help or guadance is appreciated. I'm very new to qml!
本文标签: qmlUnable to set the panel icon of an applet in plasmaStack Overflow
版权声明:本文标题:qml - Unable to set the panel icon of an applet in plasma - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736300663a1930897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论