您的位置: 首页 > 文章 > QT中控件的位置 QT中控件的位置 分类: 文章 • 2022-10-05 20:28:07 要注意控件中的位置:pos 与 x() y()是一致的 geometry 是不考虑窗体的边框宽度 qDebug()<<"y = "<label_2->pos().y()<label_2->geometry().y()<label_2->frameGeometry().y();