Skip to content

Conversation

@fernandotonon
Copy link
Owner

Summary

  • Fix QML Material List Modal failing to load with error "QML Material List Modal failed to load. Please check the QML files and try again."

Root Cause

The qml/qmldir file incorrectly referenced a non-existent MaterialEditorQML.qml file as a singleton:

singleton MaterialEditorQML 1.0 MaterialEditorQML.qml

The MaterialEditorQML singleton is actually registered from C++ via qmlRegisterSingletonType in mainwindow.cpp, not from a QML file. This incorrect qmldir entry caused the QML engine to fail when trying to load the module.

Changes

  • Removed the invalid singleton MaterialEditorQML 1.0 MaterialEditorQML.qml line from qml/qmldir

Test plan

  • Build macOS release via GitHub Actions
  • Download and install the DMG on macOS
  • Open the Material List from the menu
  • Verify the QML modal loads correctly without errors

🤖 Generated with Claude Code

The qmldir file incorrectly referenced a non-existent MaterialEditorQML.qml
file as a singleton. The MaterialEditorQML singleton is registered from C++
via qmlRegisterSingletonType, so this qmldir entry was causing the QML
engine to fail when loading the MaterialListModal.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@fernandotonon fernandotonon merged commit 0289e9e into master Jan 28, 2026
10 checks passed
@fernandotonon fernandotonon deleted the fix/macos-qml-material-list branch January 28, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants