sudo apt-get upadte
sudo apt-get install qt4-dev-tools
sudo apt-get install qtcreator
sudo apt-get install qt4-doc
sudo apt-get install qt4-qtconfig
sudo apt-get install qt-demos
编译指令
qmake -project
qmake
make
实现Ubuntu20,04 与Windows之间的复制粘贴
安装open-vm-tools-desktop:sudo apt-get install open-vm-tools-desktop
sudo apt-get install open-vm-tools-desktop /
重启Ubuntu系统:reboot
sudo reboot
#include<QApplication>
#include<QLabel>
int main(int argc,char** argv)
{QApplication app(argc, argv);QLabel label("hello world");label.show();app.exec();return 0;
}