goCqtguigoqtgo

安装github.com/therecipe/qt包

github.com/therecipe/qtqtgoQTAPIC++QT C++
qtqt
github.com/therecipe/qt
gogithub.com/therecipe/qtGOPATHgithubgo getforkgit clonehttps://gitee.com/rocket049/qt
ubuntuqt
aptqt

sudo apt-get --no-install-recommends install libqt*5-dev qt*5-dev qml-module-qtquick-* qt*5-doc-html

第三步、编译开发工具套件

只需要运行下面的命令:

go get -v -tags=no_env github.com/therecipe/qt/cmd/...

${HOME}/.bashrc

export QT_PKG_CONFIG=true
#下面的是ubuntu18.04的QT_API版本,如果ubuntu版本不同,你应该自己查看你系统里的qt版本,然后填入相应的版本号
export QT_API=5.9.0

qtapt-cache show libqt5core5aqtQT_APT0qt
.bashrc. .bashrc$(go env GOPATH)/bin/qtsetupqtinstalltestCTRL-C

安装liteide集成开发环境

vimvscodeliteideliteideliteidegithubhttps://github.com/visualfc/liteidehttp://liteide.org/
github.com/therecipe/qtliteidevimgopls
liteide/opt
/opt

cd /opt
sudo tar xvfz /你的/保存/路径/liteide-xxx.tar.gz

liteide.desktop
chmod +x liteide.desktop

到这里本文就结束了,感谢耐心阅读。