resize

Enable resizing on QWidget

别说谁变了你拦得住时间么 提交于 2020-12-12 03:18:38
问题 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"

Enable resizing on QWidget

谁说胖子不能爱 提交于 2020-12-12 03:17:06
问题 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"