Is it possible to native support wayland?

Hi, I found that OCC application can't work on wayland, that's because you can't get the window handle from winId(). https://bugreports.qt.io/plugins/servlet/mobile#issue/QTBUG-76983

Although, I can simply set export QT_QPA_PLATFORM=xcb to make it work, but that isn't the final solution.

I found there is a blog that talks about wayland

However, supporting Wayland in OCCT requires further research and modifying OCCT source code. Unfortunately, there is not much of the Linux community showing an interest in providing Wayland compatibility patches to OCCT – so that this task remains a low priority feature with XWayland as a working fallback.

There are less and less people are still using X11, so it is important to native support wayland.

Dmitrii Pasukhin's picture

Hello, thanks for your research.

We will take a look into this new technology.

Best regards, Dmitrii.

Dmitrii Pasukhin's picture
Tim Tu's picture

Thanks, look forward to your result.

Tim Tu's picture

Hi, Did you made any process?

Hua Geng's picture

Hi I set export QT_QPA_PLATFORM=xcb in my IMX8 machine board..the terminal output the debug information qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Could you help me how to locate this error?

Attachments: 
Tim Tu's picture

That problem may not because of OCC. I think that is QT's problem.
Try to search on google, a lot of people have met this problem.
https://forum.qt.io/topic/93247/qt-qpa-plugin-could-not-load-the-qt-plat...

Hua Geng's picture

I copy library libxcb-xinerama.so.0.0.0 into /usr/lib/ directory.. then run Qt Application + OCCT ..the terminal output below message ...
OpenGl_GraphicDriver, this system doesn't appear to support OpenGL!
terminate called after throwing an instance of 'Aspect_WindowDefinitionError'
Aborted

Attachments: