转载:https://blog.csdn.net/yl_best/article/details/83818485 QWidget继承自QObject和QPaintDevice QLayout继承自QObject和QLayoutItem