已安装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
相关产品推荐
相关产品推荐

