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

Qt apps always black #24

Open
gcardi opened this issue Feb 15, 2022 · 7 comments
Open

Qt apps always black #24

gcardi opened this issue Feb 15, 2022 · 7 comments

Comments

@gcardi
Copy link

gcardi commented Feb 15, 2022

After installed systemd applications using Qt exhibits always a black window. I've tried with VLC and QtCreator.

What I'm missing?

@gcardi
Copy link
Author

gcardi commented Feb 15, 2022

Hi, I just noticed that starting a QT application as root (sudo su), it works just fine.

@gcardi
Copy link
Author

gcardi commented Feb 15, 2022

This works:

giuliano@PC-GIULIANO10:~$ sudo ./qtcreator
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsNotifier(const QString) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsNotifier(const QString)
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsUsageTimer(const QString, int) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsUsageTimer(const QString, int)

This doesn't works:

giuliano@PC-GIULIANO10:~$ ./qtcreator
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
QApplication: invalid style override 'kvantum-dark' passed, ignoring it.
Available styles: Windows, Fusion
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsNotifier(const QString) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsNotifier(const QString)
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsUsageTimer(const QString, int) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsUsageTimer(const QString, int)

@crramirez
Copy link

crramirez commented Apr 13, 2022

Hello @gcardi ,

Try with this:

export XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir

Also, be sure that qt5-wayland or qt5-qtwayland packages are installed

@gcardi
Copy link
Author

gcardi commented Apr 14, 2022 via email

@crramirez
Copy link

I found that vlc is still black but QT creator, Konsole and others began to work after this change

@crramirez
Copy link

Also try export QT_QPA_PLATFORM=wayland

@gcardi
Copy link
Author

gcardi commented Apr 14, 2022 via email

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

No branches or pull requests

2 participants