Jun 01, 2021 Article blog
Qt
(pronounced "cute" instead of "cu-tee") is a cross-platform framework, often used as a graphics toolkit, and is useful not only for creating
CLI
applications.
It can also run on ports for three major desktop operating systems, as well as mobile operating systems such as Symbian, Nokia Belle, Meego Harmattan, MeeGo or BB10, as well as embedded devices, Android (Necessitas) and iOS.
(Recommended tutorial: C?tutorial)
Qt
is widely used in subclasses, especially in
Widgets
The following diagram shows some of these inheritance relationships:
QObject
is the most basic class in
Qt
M
ost classes in
Qt
are derived.
QObject
provides some very powerful features, such as:
Widgets are able to respond to events and use subsystems as well as signal and slot mechanisms. A
ll widgets are inherited from
QObject
T
he most basic
QWidget
QWidget
contains most of the properties used to describe windows or widgets, such as location and size, mouse cursor, tooltips, and so on.
Note:
In
Qt
widgets can also be windows. I
n the previous section, we showed a button that is a widget, but it appears directly as a window.
The "QWindow" class is not required.
Almost all graphic elements are inherited from
QWidget
We can cite examples such as:
QAbstractButton,所有按钮类型的基类
QPushButton
QCheckBox
QRadioButton 。
QFrame,显示框架
QLabel,显示文本或图片
This subclass is performed to facilitate property management.
Shared properties such as size and cursor can be used on other graphics
QAbstractButton
the basic properties for all button shares.
(Recommended micro-classes: C-micro-classes)
Source: www.toutiao.com/a6861850838445326852/
The above is about the cross-platform C, the development tool Qt related to the introduction, I hope to help you.