Qt How to get the width and height of a widget

QWidget::width();
QWidget::height();

原文地址:https://www.cnblogs.com/johnpher/p/2673297.html