环境搭建
ubuntu 安装QT 遇到kit 选择不了
通过sudo apt-get install qt5-default
去安装SDK的时候报错:
Package qt5-default is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'qt5-default' has no installation candidate
可以执行
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qtcreator
配置Kit: 看下对应的编译器是否自动找到了,没找到去设置一下路径
程序结构介绍
QpushButton
可以在帮助文档中搜索,发现它的父类和子类。父类需要包含到头文件中