Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
App crashed when instantiate a QMediaPlayer object in android with qt5.9.2
cirno_sama last edited by cirno_sama
APP crashed when I add "QT+=multimedia" in .pro file,"#include <QMediaPlayer>" in .h file,and "QMediaPlayer *player=new QMediaPlayer(this);" in cpp file.
Can anyone help me?
mvuori last edited by
I notice that Qt's documentation for QMediaPlayer construct it without any arguments - perhaps it has problems with whatever you set as its parent. So, I'd try just: player = new QMediaPlayer;
You should also consider updating to the latest version of the 5.9 series if not Qt 5.10.