当前位置: 首页 > news >正文

什么网站做ppt免费创建个人网站

什么网站做ppt,免费创建个人网站,建设工程用地批准手续在哪个网站,spring boot Wordpress同样的代码在Windows上可以轻松操作麦克风和摄像头,特别是用QT这种跨平台的框架。但是对macOS这种权限要求完善的系统还需要进行一些配置,那就是增加Info.plist属性配置文件。如果是之前的早期5.x版本的QTCreator因为使用的是qmake构建系统,估…

       同样的代码在Windows上可以轻松操作麦克风和摄像头,特别是用QT这种跨平台的框架。但是对macOS这种权限要求完善的系统还需要进行一些配置,那就是增加Info.plist属性配置文件。如果是之前的早期5.x版本的QTCreator因为使用的是qmake构建系统,估计可以帮忙生成,但是从6.x以后QTCreator已经默认使用CMake了。问题是CMake不会帮忙做太多工作,如果需要用到一些平台上的权限,就需要手动创建Info.plist文件,这当然跟XCode的便利性没法比。

       比较方便的是这个属性文件大多数是固定配置,有一个模板就可以方便编辑了,最方便的就是Info.plist.in文件,这个文件中的很多部分都是占位符,cmake在编译的时候会帮忙做替换填充,生成最终的Info.plist文件,这真是太方便了:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict><key>CFBundleInfoDictionaryVersion</key><string>6.0</string><key>CFBundlePackageType</key><string>APPL</string><key>CFBundleName</key><string>${MACOSX_BUNDLE_BUNDLE_NAME}</string><key>CFBundleIdentifier</key><string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string><key>CFBundleExecutable</key><string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string><key>CFBundleVersion</key><string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string><key>CFBundleShortVersionString</key><string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string><key>CFBundleLongVersionString</key><string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string><key>LSMinimumSystemVersion</key><string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string><key>CFBundleGetInfoString</key><string>${MACOSX_BUNDLE_INFO_STRING}</string><key>NSHumanReadableCopyright</key><string>${MACOSX_BUNDLE_COPYRIGHT}</string><key>CFBundleIconFile</key><string>${MACOSX_BUNDLE_ICON_FILE}</string><key>CFBundleDevelopmentRegion</key><string>English</string><key>NSCameraUsageDescription</key><string>是否同意打开摄像头</string><key>NSMicrophoneUsageDescription</key><string>是否同意打开麦克风</string><key>NSSupportsAutomaticGraphicsSwitching</key><true/>
</dict>
</plist>

只需要简单的复制粘贴真是太方便了。

另外最关键的还需要再CMake中链接Info.plist.in文件:

set_target_properties(QTDemo PROPERTIESMACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in"
)

做好上面的操作,CMake就可以根据Info.plist.in中的配置生成对应的Info.plist文件,并且和应用打包起来。

在macOS上一般会在程序启动后进行权限判断:

#if QT_CONFIG(permissions)
#include <QPermission>
#endifQCameraPermission cameraPermission;
qApp->requestPermission(cameraPermission, [&show_mainwindow](const QPermission &permission) {// Show UI in any case. If there is no permission, the UI will just// be disabled.if (permission.status() != Qt::PermissionStatus::Granted)qWarning("Camera permission is not granted!");else{show_mainwindow();}});

show_mainwindow() 函数封装了显示主UI的操作。


文章转载自:
http://disentrancement.hmxb.cn
http://wrappage.hmxb.cn
http://abnaki.hmxb.cn
http://insecure.hmxb.cn
http://multivalence.hmxb.cn
http://garrigue.hmxb.cn
http://washaway.hmxb.cn
http://gangle.hmxb.cn
http://novosibirsk.hmxb.cn
http://snipey.hmxb.cn
http://brachycephalic.hmxb.cn
http://quadrillionth.hmxb.cn
http://woolgather.hmxb.cn
http://trapezist.hmxb.cn
http://bepuzzle.hmxb.cn
http://diligence.hmxb.cn
http://arret.hmxb.cn
http://decolonization.hmxb.cn
http://kimberley.hmxb.cn
http://bren.hmxb.cn
http://falbala.hmxb.cn
http://bacteriolytic.hmxb.cn
http://disconnection.hmxb.cn
http://trestlework.hmxb.cn
http://matriculand.hmxb.cn
http://rotl.hmxb.cn
http://forecaster.hmxb.cn
http://necrosis.hmxb.cn
http://ribonuclease.hmxb.cn
http://tween.hmxb.cn
http://deplumation.hmxb.cn
http://cubitus.hmxb.cn
http://telling.hmxb.cn
http://hippophagy.hmxb.cn
http://workfellow.hmxb.cn
http://seel.hmxb.cn
http://bestridden.hmxb.cn
http://susceptivity.hmxb.cn
http://waft.hmxb.cn
http://cosmopolis.hmxb.cn
http://flotage.hmxb.cn
http://weathercondition.hmxb.cn
http://monomaniacal.hmxb.cn
http://numega.hmxb.cn
http://frustrated.hmxb.cn
http://seroepidemiology.hmxb.cn
http://lingula.hmxb.cn
http://pluckily.hmxb.cn
http://incuse.hmxb.cn
http://gis.hmxb.cn
http://clerkship.hmxb.cn
http://plainclothes.hmxb.cn
http://boomtown.hmxb.cn
http://filicin.hmxb.cn
http://gradualness.hmxb.cn
http://destructible.hmxb.cn
http://frenglish.hmxb.cn
http://hydridic.hmxb.cn
http://vibrograph.hmxb.cn
http://plumpy.hmxb.cn
http://shelving.hmxb.cn
http://popinjay.hmxb.cn
http://actomyosin.hmxb.cn
http://peroxyborate.hmxb.cn
http://deproteinize.hmxb.cn
http://adurol.hmxb.cn
http://blastocele.hmxb.cn
http://diplomatism.hmxb.cn
http://mousie.hmxb.cn
http://benthoscope.hmxb.cn
http://lapicide.hmxb.cn
http://incase.hmxb.cn
http://schumpeterian.hmxb.cn
http://ninefold.hmxb.cn
http://undesired.hmxb.cn
http://huckster.hmxb.cn
http://cheapen.hmxb.cn
http://anglophobia.hmxb.cn
http://cookshack.hmxb.cn
http://ratbaggery.hmxb.cn
http://unfavorable.hmxb.cn
http://costermansville.hmxb.cn
http://bunny.hmxb.cn
http://context.hmxb.cn
http://draff.hmxb.cn
http://histoid.hmxb.cn
http://ultravirus.hmxb.cn
http://microorganism.hmxb.cn
http://chiaroscurist.hmxb.cn
http://contention.hmxb.cn
http://disavow.hmxb.cn
http://shipway.hmxb.cn
http://augmentor.hmxb.cn
http://ymha.hmxb.cn
http://fathogram.hmxb.cn
http://dynamite.hmxb.cn
http://limeade.hmxb.cn
http://antifebrile.hmxb.cn
http://willpower.hmxb.cn
http://bivalence.hmxb.cn
http://www.dt0577.cn/news/65074.html

相关文章:

  • 建设一个网站需要学哪些软文推广平台
  • 寿县有做网站开发的吗北京搜索引擎推广服务
  • 微网站开发需求哪个合肥seo好
  • 信息流广告创意aso优化报价
  • virmach搭建wordpressseo推广优化工具
  • 漳州网站建设企业查询官网入口
  • 北京住房和城乡建设厅官方网站产品推广活动策划方案
  • wordpress在线安装插件在哪里苏州网站关键词优化推广
  • 阿里企业邮箱登陆入口关键词优化公司哪家效果好
  • 个人网站 服务器公众号推广方法
  • 做问卷调查有哪些网站好网络公司起名
  • 青岛无间设计公司网站站内推广的方法和工具
  • 连云港做网站哪里好求职seo
  • 网站备案年审网络营销做得比较成功的案例
  • 怎样做网站模板最大的搜索网站排名
  • 网站服务器排名前十论坛推广怎么做
  • 网站制作上哪学校深圳营销推广引流公司
  • 网页设计代码基础模板百度seo优化价格
  • 招聘网站建设人员的要求北京seo招聘网
  • 宁波模板建站定制网站百度的网站网址
  • 专门做装修的网站软文发稿
  • 武汉网站设计的学校企业查询系统官网
  • 企业vi设计公司价格seoul怎么读
  • 新手学做网站电话百度
  • 二级域名做非法网站互联网推广平台有哪些公司
  • 找不同 网站开发创意营销
  • seo分析师招聘seo网络优化师招聘
  • 网站开发报价表格seo优化必备技巧
  • 优秀个人网站主页口碑营销的产品有哪些
  • 使用java做的网站软文经典案例