QT project creation

QT project creation

Features

  1. Use QT Creator to create a QT project
  2. Write Hello World program

One, create a QT project

① File -> New File or Project
Insert picture description here
Name ② set up the project and save the path
Insert picture description here
③ direct the next step
Insert picture description here
④ Select Qwidget, and the next step
Insert picture description here
⑤ Next
Insert picture description here
⑥ Next
Insert picture description here
This completes the creation of the project

Two, write the Hello World program

①Forms–>widget.ui ②Drag
Insert picture description here
Push Button onto the panel ③Right
Insert picture description here
-click PushButton, and select "Go to Slot", select Clicked(), and click OK.
Insert picture description here
④ Compile slot function
Insert picture description here
⑤ Compile and execute
Insert picture description here
⑥ Effect display
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_37120496/article/details/115339607