Wednesday, 31 July 2019

Basics of Qt Designer

Qt Designer is a cross-platform integrated development environment (IDE) and used as a framework for the design and development of GUI application. It is used to create GUI of the C++, Python, JavaScript languages. Qt Designer Tool contains three main components:
  1. MainWindow 
  2. Widget Box - (Layouts, Buttons, Input Widgets...)
  3. Property Editor - (Property list of widgets)

MainWindow
It contains all the widgets, layouts, etc. of the application. 

Widget Box
It contains GUI controls:
Layouts (vertical, horizontal, grid and form)
Buttons (Push Button, Radio Button, CheckBox...)
Input Widgets (Combo Box, Line Edit, Date Edit...)
Display Widgets (Labels, Progress Bar...)
Each control name has a prefix Q e.g. QLabel, QPushButton, etc.

Property Editor
It contains properties of the main window and widgets e.g. objectName, geometry (height, width), font (family, point size, bold, italic).

*GUI file is created with the extension '.ui' following the filename.

No comments:

Post a Comment