摘要: QToolBox如果直接用remove(不会delete)移除子类,显示会不全,因为item失去约束后,跑到窗口左上角了(这里移除s1), 要想显示完整,remove后将对应item用hide()隐藏即可。 QWidget* item = toolBox->widget(index); // 获取i 阅读全文
posted @ 2021-12-30 13:20 补码 阅读(757) 评论(0) 推荐(0)