Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Embeded Video in Qt5 widget not shows mouse pointer.
Forum Updated to NodeBB v4.3 + New Features

Embeded Video in Qt5 widget not shows mouse pointer.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 351 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    calanor
    wrote on last edited by calanor
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        calanor
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved