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

Can not open in windowed mode in Qt 5.15.2 #10

Open
swdmnd opened this issue Apr 11, 2021 · 4 comments
Open

Can not open in windowed mode in Qt 5.15.2 #10

swdmnd opened this issue Apr 11, 2021 · 4 comments

Comments

@swdmnd
Copy link

swdmnd commented Apr 11, 2021

I followed the tutorial but can't open the app in windowed mode.
The error is:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
Could not set DRM mode for screen HDMI1 (Permission denied)
Could not set queue DRM page flip on screen HDMI1 (Permission denied)

If I run a program from console mode, it runs in fullscreen.
What should I do? I want to be able to run qt programs in windowed mode.

@UmutDumandag
Copy link

I got the same error as well. Did you solve the problem? @swdmnd

@swdmnd
Copy link
Author

swdmnd commented Jul 13, 2021

I haven't found a solution for this. I think qt is trying to access the hardware directly instead of using X. I don't know where to start.

@cubit9-danielpeyer
Copy link

Did you try this? I had the same problem.

nano .profile
and add at the end of the file
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
save and close.

Logout and login again ... Start your Qt program

@fcyinxunpeng
Copy link

@swdmnd hello, did you fix this problem?
i set the env QT_QPA_EGLFS_ALWAYS_SET_MODE=1 in .profle
and when i switch to tty1, by press ctrl+alt+f1, it can show my app

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

4 participants