I am using qt cretor 5.1 and trying to create music player. I wrote two different codes . The one is with phonon and the other is with mediaplayer. But when i run the phonon code,they give error like that Unknown module in QT:phonon . When i run media player, it gives such error: Cannot open include file:'QMediaPlayer':No such file or directory.
Does any one have any idea?
To use the Multimedia module, you need to add multimediawidgets
to your QT
variable in your project file:
QT += multimediawidgets
Note that Phonon no longer exists in Qt 5. Use the Multimedia module instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.