PyQt5是一个大的模块,是Qt在Python中的桥梁。
QtWidgets是PyQt5下面的一个模块,包含了用于构建界面的一系列UI元素组件。
QWidget是QtWidgets模块下面的一个类。
The QWidget class is the base class of all user interface objects.
QWidget类是所有用户界面对象的基类。
Widget是用户界面最基础的原子,它接收鼠标、键盘产生的事件,然后回应。
一个没有嵌入到其他Widget中的Widget称为window
- Qt Documentation_QWidget Class