Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.2, 5.15.7, 6.7
-
None
-
Linux Mint 20
-
-
7ddaf778a (dev), 9f0c777d7 (dev), 7909926e2 (6.7), c8be32616 (6.7), e84882fd2 (6.6), cfd430ba0 (6.6), b63248669 (tqtc/lts-6.5), 42c90cbe7 (tqtc/lts-6.5), 0b1c7e0f7 (tqtc/lts-6.2)
Description
When trying to destroy a QMediaPlayer, the destroyed signal is never called.
This code shows the issue :
#include <QCoreApplication> #include <QDebug> #include <QMediaPlayer> #include <QTimer> int main(int argc, char ** argv){ QCoreApplication a(argc, argv); QMediaPlayer* mp = new QMediaPlayer(); a.connect(mp,&QMediaPlayer::destroyed,&a,[&](){ qDebug() << "Deleted"; }); mp->deleteLater(); a.exec(); }
I can't see anything about this issue in the documentation.
Attachments
For Gerrit Dashboard: QTBUG-98437 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
544612,2 | Fix emitting QObject::destroyed upon deleting of QMediaPlayer | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
544620,3 | Add a test for signals of QMediaPlayer upon destruction | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545141,2 | Fix emitting QObject::destroyed upon deleting of QMediaPlayer | 6.7 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545142,2 | Add a test for signals of QMediaPlayer upon destruction | 6.7 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545196,2 | Fix emitting QObject::destroyed upon deleting of QMediaPlayer | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545198,2 | Add a test for signals of QMediaPlayer upon destruction | 6.6 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
545233,2 | Fix emitting QObject::destroyed upon deleting of QMediaPlayer | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |
545235,2 | Add a test for signals of QMediaPlayer upon destruction | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |
545343,2 | Fix emitting QObject::destroyed upon deleting of QMediaPlayer | tqtc/lts-6.2 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |
545555,1 | Fix emitting QObject::destroyed upon deleting of QMediaPlayer | tqtc/lts-5.15 | qt/tqtc-qtmultimedia | Status: ABANDONED | 0 | 0 |