Skip to content

QML.jl fails to display vector images unlike qml-qt6 #230

@HVinther

Description

@HVinther

I have a folder structure like this:

├── test.jl
├── vectorimagetest.qml
└── assets
    └── image.svg
//vectorimagetest.qml
import QtQuick
import QtQuick.Controls

ApplicationWindow {
    id: mainWindow
    title: "dotcyz viewer"
    visible: true
    width: 640
    height: 488

    Image {
        source: "assets/image.svg"
    }
}
#test.jl
using QML

loadqml("vectorimagetest.qml")

exec()

If I run julia --project test.jl I get the following warning

Qt Warning: file:///home/hans/Projekter/cyz_viewer/vectorimagetest.qml:11:5: QML Image: Error decoding: file:///home/hans/Projekter/cyz_viewer/assets/add_region_button.svg: Unsupported image format (file:///home/hans/Projekter/cyz_viewer/vectorimagetest.qml:11, (null))

and a blank window.

Though if I run qml-qt6 vectorimagetest.qml the vector image is rendered without issue, and no warning is displayed.

The attached screen capture shows the two discrepancy:

Skaermoptagelse.fra.2026-02-11.13-14-25.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions