Cannot make new project in QT on mac osx

风格不统一 提交于 2019-12-03 12:15:40
  1. Add a Qt Version. Go to Qt Creator > Preferences... > Build & Run > Qt Versions.
    • Click Add.
    • On Mac, /usr is hidden by default, but you can access the path directly — press ⌘⇧G and type /usr into the popup.
    • Navigate to your qmake executable and click Open.
    • Under Helpers, expand Details, and click Build All.
  2. Add a Qt Kit. Go to Qt Creator > Preferences... > Build & Run > Kits.
    • Click Add.
    • Select your compiler and Qt version.
    • Click OK.
  3. Make sure the qmake-related plugins are enabled. Go to Qt Creator > About Plugins... and enable the following:
    • Build Systems > GenericProjectManager
    • Build Systems > Qt4ProjectManager
    • Build Systems > QtSupport
    • Qt Creator > ProjectExplorer
    • Qt Quick > QmlJSTools — As of Qt Creator 2.7.0, qmake projects now need QmlJSTools, which might not be enabled if you had a previous version of Qt Creator installed.
    • Then, click Close and restart Qt Creator. You should now be able to create qmake projects.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!