Enable resizing on QWidget
问题 I want a resize feature in a QWidget using Qt, like the one shown in the image below. I have used following tried following ways: using QSizeGrip , setSizeGripEnabled 回答1: For completeness I'm showing two examples: with and without the Qt Designer. Example using Qt Designer Check the sizeGripEnabled property: Preview from within the Qt Designer ( Form > Preview... ): Minimal application to show the dialog: #include <QtWidgets/QApplication> #include <QDialog> #include "ui_DialogButtonBottom.h"