I have started to practice Qt and now working on a mp3 file player and in order to do that I have to use a library called QtMediaPlayer and QMultiMedia.
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
find_package(Qt5 COMPONENTS Multimedia REQUIRED)
add_executable(MyMp3Player main.cpp mainwindow.cpp)
target_link_libraries(MyMp3Player Qt5::Multimedia)
No comments:
Post a Comment
Thanks