This basic development environment is almost the same, as the title says, you need to install qt, the first step is to install QT on ubuntu, this is actually relatively simple, enter the command apt-get install qtcreator in the terminal can automatically install and download (The premise is that your virtual machine can be networked), the installation process is a bunch of installation details, not interested in waiting, you can look at the installation information, maybe useful.
After the installation is complete, click Dash in the upper left corner and enter qt to see the installed files.
Which qtcreator is a program that is often used, click on it
This is the main interface of qt. Click Create Project, create a project, build QT Gui application, create path and project name as follows (create a new helloworld folder in the middle)
After that, all the way to the next will be finished. After the establishment, it looks like this.
Where mainwindow.ui is used for the design interface, double-click to enter the design file, enter label and button in the search box in the upper left corner, and put two files in the main interface.
On the pushbutton button, right click -> go to slot and select clicked(), which means click response. Enter the code in the code you go to, which is 18 lines lower.
Click the lower left corner to run the program. The effect is as follows:
This program is very basic, just to tell everyone how to run the program from the very beginning, I hope that you will search the tutorial online in the future, it will not be so detailed in the future.
Zro2 Ceramics,Zro2 Ceramic Rod,Zro2 Ceramic Plate,Ceramic Parts
Yixing Guangming Special Ceramics Co.,Ltd , https://www.yxgmtc.com