Qt + libVLC + QWidget overlay.

This forum is about all development around libVLC.
GuilleW
New Cone
New Cone
Posts: 2
Joined: 12 Jun 2018 11:22
VLC version: 3.0.2
Operating System: Debian

Qt + libVLC + QWidget overlay.

Postby GuilleW » 12 Jun 2018 11:38

Hi VLC community!
First, thank you all for making VLC the best media player! I'm using it since too many years ! :D

I use libVLC in a project with Qt. It works.
But I can't use QWidget with opacity over VLC output.

I create a project on GitLab to show example here :
https://gitlab.com/GuilleW/Qt-Vlc-Overlay
If i find the solution, I'll let this project online as an example to : "How to use Qt + libVLC + overlay".

DuckDucking (and Googling...) few days to find solutions. Some guys suggest using other lib but I'm sure it's possible with libVLC.
If you have some advices...
Thank you for your help :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Qt + libVLC + QWidget overlay.

Postby Rémi Denis-Courmont » 12 Jun 2018 20:40

If you want to composite the VLC video area, you probably need to do it directly at the lower platform-specific level. VLC does not use Qt to draw.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

GuilleW
New Cone
New Cone
Posts: 2
Joined: 12 Jun 2018 11:22
VLC version: 3.0.2
Operating System: Debian

Re: Qt + libVLC + QWidget overlay.

Postby GuilleW » 12 Jun 2018 23:24

Do you know why vlc video area stays on top ? Why can't it just draws in a layer, and we draw something over it ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Qt + libVLC + QWidget overlay.

Postby Jean-Baptiste Kempf » 17 Jun 2018 22:25

Do you know why vlc video area stays on top ? Why can't it just draws in a layer, and we draw something over it ?

You need to use your QWidget and give it the right flag.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests