如何使用qt中的组件 #3374
Answered
by
lolikonloli
lolikonloli
asked this question in
Q&A
如何使用qt中的组件
#3374
-
我想在qt5中使用qt的Multimedia模块 add_rules("mode.debug", "mode.release")
add_requires("qt5base", "ffmpeg")
target("qt_ffmpeg")
add_rules("qt.widgetapp")
add_packages("ffmpeg", "qt5base")
add_headerfiles("Headers/**.h")
add_files("./main.cpp")
add_files("code/**.cpp")
add_files("ui/ffpemg_player.ui")
-- add files with Q_OBJECT meta (only for qt.moc)
add_files("Headers/mainwindow.h") 但是这样使用 我在xmake.lua中手动添加了 在cmake里面可以通过 请问在xmake中怎么使用那些组件 |
Beta Was this translation helpful? Give feedback.
Answered by
lolikonloli
Feb 16, 2023
Replies: 1 comment
-
已经解决了, 用 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lolikonloli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经解决了, 用
add_frameworks("QtMultimedia")
, 参考了下案例工程