Qt 壁纸插件KDE plasma中的config.qml
我正在为KDE Plasma开发一个壁纸插件。我已经对所有的效果进行了编码并进行了测试。它运行良好。但是在编写配置文件时,配置根本没有显示在配置壁纸中。当我选择另一个插件时,它会显示出来,当我再次选择这个插件时,配置不会加载。 这是密码Qt 壁纸插件KDE plasma中的config.qml,qt,qml,kde,plasmoid,Qt,Qml,Kde,Plasmoid,我正在为KDE Plasma开发一个壁纸插件。我已经对所有的效果进行了编码并进行了测试。它运行良好。但是在编写配置文件时,配置根本没有显示在配置壁纸中。当我选择另一个插件时,它会显示出来,当我再次选择这个插件时,配置不会加载。 这是密码 import QtQuick 2.1 import QtQuick.Layouts 1.0 import QtQuick.Controls 1.0 as QtControls // for "units" import org.kde.pl
import QtQuick 2.1
import QtQuick.Layouts 1.0
import QtQuick.Controls 1.0 as QtControls
// for "units"
import org.kde.plasma.core 2.0 as PlasmaCore
ColumnLayout {
id: root
property alias cfg_DisplayText: textField.text
RowLayout {
spacing: units.largeSpacing / 2
// To allow aligned integration in the settings form,
// "formAlignment" is a property injected by the config containment
// which defines the offset of the value fields
QtControls.Label {
Layout.minimumWidth: width
Layout.maximumWidth: width
width: formAlignment - units.largeSpacing
horizontalAlignment: Text.AlignRight
// use i18nd in config QML, as the default textdomain is set to that of the config container
text: i18nd("plasma_wallpaper_org.kde.plasma.random", "Choose Effect")
}
QtControls.ComboBox {
id: resizeComboBox
Kirigami.FormData.label: i18ndc("plasma_wallpaper_org.kde.plasma.random", "@label:listbox", "Centre Logo Glow:")
model: [
{
'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Central Logo Shown"),
},
{
'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Central Logo Focused"),
},
{
'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Central Logo Colored"),
},
{
'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Left to deside"),
},
{
'label': i18ndc("plasma_wallpaper_org.kde.plasma.random", "@item:inlistbox", "Left to decide"),
}
]
}
Item { // tighten layout
Layout.fillHeight: true
}
}
}
这意味着您的配置中存在错误 您可以尝试在konsole会话中重新启动KDE,以便查看日志: 基尔尔等离子体室;kstart5等离子发生器 如果日志输出中出现的问题不明显,请尝试注释掉大部分config.qml,然后一次取消注释一个元素,直到找出是哪个元素导致了问题