Create a blank window using Qt

1. Open the QT Creator Qt Creator (assistan is the Qt API query assistant),

 

The opening interface displays as follows:

2. Click File-> Click New File or Project or click New Project directly

3. Click choose to set the location:

Name column, fill in the newly named name

Path column, select the location where the project file is saved

note:

File name: The file name cannot contain spaces and Chinese;

Path selection: no Chinese path

4. Click, Next, set up kits

5. Click Next to enter the summary interface

 

 In the summary interface, contains several basic categories: Qwidget, Qmaindow, Qdialog

Class information:

The difference between several base classes:

Qwidget is the parent class, two are child inheritance

Qwidget: big white box

Qmaindow: has a status bar

Qdialog: The dialog box is not minimized and maximized

6. Click Next to enter the summary:

When added to the version control system svn, vss, git when multiple people build a project, you can choose to use it for team development.

7. Click Finish to complete the construction of a blank window. Click the green button or ctrl + r to compile. See if the program can win a blank window. If it can, prove that the new project is correct.

8. Some commonly used shortcuts in qt software:

 

Published 9 original articles · Likes6 · Visits 1997

Guess you like

Origin blog.csdn.net/GG802312/article/details/105371379