官方的手册:

QWidget Class Reference
The QWidget class is the base class of all user interface objects. 
Inherits: QObject and QPaintDevice.
Inherited by: ……, QDialog, ……,QMainWindow, ……

QDialog Class Reference
The QDialog class is the base class of dialog windows.
InheritsQWidget.

QMainWindow Class Reference
The QMainWindow class provides a main application window.
InheritsQWidget.

可以看到QMainWindow和QDialog都是继承自QWidget。

相关文章:

  • 2021-12-31
  • 2021-09-29
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-05-14
  • 2022-12-23
猜你喜欢
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案