QT按钮等控件叠加显示在Qlabel上way1,SetParent()—代码简单,但是布局不可控(不推荐)way2,setLayout()设置布局——用代码写布局(推荐)way1,SetParent()—代码简单,但是布局不可控(不推荐)通过父子关系,让控件展示在label上方QPushButton *myButton = new QPushButton();QLabel *myBackgroundLabel = new QLabel();myButton->setParent(myBack