QtMultimedia and QtMultimediaWidgets missing in PySide6 on Windows
-
I'm using PySide6 on Windows 7, installed it with pip.
When I runfrom PySide6.QtMultimedia import QMediaPlayer, QMediaPlaylist from PySide6.QtMultimediaWidgets import QVideoWidget
I get an error:
ModuleNotFoundError: No module named 'PySide6.QtMultimedia'
I checked my Python38\Lib\site-packages\PySide6\include - it doesn't have QtMultimedia and QtMultimediaWidgets subfolders, although Python38\Lib\site-packages\PySide2\include does.
How can I get these packages?
-
Hi,
@midnightdim said in QtMultimedia and QtMultimediaWidgets missing in PySide6 on Windows:
How can I get these packages?
Wait for it to be released. 6.0 does not contain it.
See this wiki page for the release status.
-
@SGaist I see, thanks. I'd like to start implementing some features using these packages. Would you recommend using PySide2 and then switching back to PySide6? Will there be any compatibility issues?
Is there a good way to use these PySide2 components together with PySide6?
This might sound weird, but I'm new to Qt and PySide, so I'm looking for some guidance here. Thanks again. -
Just go with PySide2 for now. Once Qt 6 reaches the level in terms of the modules you need, you can then switch over to it.
-
@SGaist Thanks, it seems to work just fine with PySide2 and some little adjustments.
I wonder why in PySide6 repository that I found (git://code.qt.io/pyside/pyside-setup.git) the examples depend on these modules (and don't work). -
Well, most of the modules will come back in the more or less near futur so I am guessing that nuking the documentation and put it back afterward would have likely generated a non trivial amount of work but it's really just a guess.
-
@midnightdim said in QtMultimedia and QtMultimediaWidgets missing in PySide6 on Windows:
I wonder why in PySide6 repository that I found (git://code.qt.io/pyside/pyside-setup.git) the examples depend on these modules (and don't work).
I'd say @SGaist is right.
These examples are old and worked fine in PySide2. They will work again in an upcoming version of PySide6.
-
Although we are in the Qt 6.2 era now, the module is not available. The aforementioned wiki page with progress tracking references some JIRA tickets, but the URLs are not valid.
Where can one find out the latest news about any developments on this front?
-
@ralienpp said in QtMultimedia and QtMultimediaWidgets missing in PySide6 on Windows:
Although we are in the Qt 6.2 era now, the module is not available.
It is (e.g. https://doc.qt.io/qtforpython/PySide6/QtMultimedia/QMediaPlayer.html )
The aforementioned wiki page with progress tracking references some JIRA tickets, but the URLs are not valid.
Hmm... that's very unfortunate. Note, however, that that wiki page is for Qt 6.0 preparations.
Where can one find out the latest news about any developments on this front?
https://www.qt.io/blog/qt-multimedia-in-qt-6
Note that there are major changes between Qt 5 and Qt 6.
-
Note that there are major changes between Qt 5 and Qt 6.
Aha, that's it. I thought it wasn't ready because
QMediaContent
andQMediaPlaylist
are missing, but according to the materials you've referenced, this is by design: "We have for now removed all playlist functionality from the module".Thank you for the clarification.