Go-Qt5开发之linux安装配置(1)

开发环境

  • 系统:uos 20
  • Go版本:1.14
  • Git:2.20
  • Go开发工具:goland-2019.3.1
  • Qt5 版本: 5.13.2 (推荐5.13,具体看官网)

Linux配置

下载安装

  • 下载地址:http://download.qt.io/archive/qt/5.13/5.13.2/
  • 安装:为避免麻烦直接安装所有组件
  • 安装路径:默认当前用户下

环境变量配置

vim ~/.bashrc 或 vim ~/.zshrc

# Qt
export QT_DIR=/home/one/Qt5.13.2
export QT_VERSION=5.13.2

goqtuic

untitled.ui 文件转untitled.go
A go lang uic for therecipe qt binding. Refer to: https://github.com/therecipe/qt

  • Install therecipe qt binding: https://github.com/therecipe/qt
  • Install goqtuic: go get -u -v github.com/stephenlyu/goqtuic
  • Check goqtuic usage: goqtuic -help
  • use: goqtuic -ui-file untitled.ui

下载配置go-qt包

可以查看:Go-Qt5开发之Windows10安装配置(1)

你可能感兴趣的:(Golang-Qt5)