qt获取子控件坐标

 

 QPoint pos = ui->m_blt->mapToGlobal(QPoint(0, 0));

就可以了。

posted @ 2020-11-27 13:48  梁子~  阅读(592)  评论(0)    收藏  举报