Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtscreen: fix qt error #100868

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

virtscreen: fix qt error #100868

wants to merge 1 commit into from

Conversation

@Lassulus
Copy link
Member

@Lassulus Lassulus commented Oct 17, 2020

should fix #84511
well this at least fixes the qt errors during startup, sadly now it throws this error when trying to start the interface:

QSystemTrayIcon::setVisible: No Icon set
file:///nix/store/k1srawz1rd0sk9582r4j3j7a92sjf3gd-virtscreen-0.3.1/lib/python3.8/site-packages/virtscreen/assets/AppWindow.qml:59:13: Type Label unavailable
file:///nix/store/hxrpj8j78819sxg3n1zrv91pai0lc8kk-qtquickcontrols2-5.14.2-bin/lib/qt-5.14.2/qml/QtQuick/Controls.2/Material/qmldir: plugin cannot be loaded for module ".nix.store.hxrpj8j78819sxg3n1zrv91pai0lc8kk-qtquickcontrols2-5.14.2-bin.lib.qt-5.14.2.qml.QtQuick.Controls.Material": Module namespace 'QtQuick.Controls.Material' does not match import URI '.nix.store.hxrpj8j78819sxg3n1zrv91pai0lc8kk-qtquickcontrols2-5.14.2-bin.lib.qt-5.14.2.qml.QtQuick.Controls.Material'
qml: Loader Status Changed. 3
@Flygrounder
Copy link

@Flygrounder Flygrounder commented Dec 19, 2020

I am trying to build my own Qt app on NixOs and I have the same error about Material plugin.

file:///nix/store/xjxhddd4x1ask9z5qyj39vvgjk1k7331-qtquickcontrols2-5.14.2-bin/lib/qt-5.14.2/qml/QtQuick/Controls.2/Material/qmldir: plugin cannot be loaded for module ".nix.store.xjxhddd4x1ask9z5qyj39vvgjk1k7331-qtquickcontrols2-5.14.2-bin.lib.qt-5.14.2.qml.QtQuick.Controls.Material": Module namespace 'QtQuick.Controls.Material' does not match import URI '.nix.store.xjxhddd4x1ask9z5qyj39vvgjk1k7331-qtquickcontrols2-5.14.2-bin.lib.qt-5.14.2.qml.QtQuick.Controls.Material'

Seems like Nix ships it in a wrong format. The only other clue I've found on the Internet about this error is this https://stackoverflow.com/questions/55439010/how-to-configure-qml-import-path-when-using-qt5-from-nixpkgs but the only solution there is a hack with environmental variable

@stale
Copy link

@stale stale bot commented Jul 20, 2021

I marked this as stale due to inactivity. → More info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants