安装qt-creator
bash
brew install qt-creator
安装qt
bash
brew install qt
- 查看qt安装路径
bash
brew info qt
bash
zhb@bindembp ~ % brew info qt
==> qt: stable 6.6.1 (bottled), HEAD
Cross-platform application and UI framework
https://www.qt.io/
/opt/homebrew/Cellar/qt/6.6.1 (14,396 files, 623.5MB) *
/opt/homebrew/Cellar/qt/6.6.1就是qt安装路径
配置qt-creator
添加时选择[qt安装目录]/bin/qmake
选择qt版本、CMake Tool、编译器,如果是m1、m2等系列cpu的macbook,切换arm-darwin-generic-mach_o-64bit为默认再开始设置
创建Qt Quick项目

运行
