You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

已安装KDE Marble但无法运行QML示例的问题求助

问题描述

我正在使用KDE Marble,并参考了官方开发文档。

我的QML代码如下:

import QtQuick 2.1
import org.kde.marble 0.20

MarbleWidget {
  projection: "Mercator"
  mapThemeId: "earth/openstreetmap/openstreetmap.dgml"
}

运行程序时出现以下错误信息:

QML debugging is enabled. Only use this in a safe environment.
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style).
The application may look broken. QQmlApplicationEngine failed to load component qrc:/main.qml:4:1: module "org.kde.marble" is not installed

另外,我也无法运行Marble源码中examples/qml/目录下的示例程序。

我的环境配置:

  • Fedora 38
  • Qt 5.15.10

我已经编译并安装了Marble,它的widget组件可以正常工作,但QML相关的示例和代码都无法运行。

内容的提问来源于stack exchange,提问作者Parisa.H.R

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 05:09:51