Embeded Video in Qt5 widget not shows mouse pointer.
-
Hello,
I've had a Qt4 application for years that embeds a VLC video with --drawable-xid with the winId() of a Widget derived from QLabel. Everything works fine even the cursor appears on the video when you move the mouse and disappears after a short time if you stop move the cursor over the video. Exactly as expected and like any video player.Now I have compiled the same application for Qt5 (5.15) and I see that in Qt5 when move the pointer over the video it doesn't become visible at all. This way it becomes very difficult to move around the application without seeing the cursor when the video occupies a large part of the screen.
What changed between Qt4 and Qt5 (I haven't tested with Qt6) that changes the behavior of the cursor on the embedded video?
Is there a way in Qt5 to fix this issue?I use Ubuntu 22.04 LTS with Qt 5 from official repository.
Thanks. -
Hi,
Qt 5 has seen the implementation of the QPA system. And if memory serves well the move to xcb for the Xorg backend. It might be related to your issue.
-
Thanks SGaist,
I use the xcb backend because it is the only one that allows embed VLC with --drawable-xid option. If I use another backend like eglfs the cursor is displayed correctly over the video but VLC is not embedded inside the widget and it appears at full screen. -
I understand why you use it, hence my suggestion, the Xorg integration has changed a bit between 4 and 5 hence checking that part is what you should do.
If would recommend checking the bug report system to see if there's something over there about that.