[Solved] How to drag the size of windows?
-
Hi! all,
Is there any way to re-size a window(QFrame , QTextEdit...) via dragging it's bottom right-hand corner?
!http://www.freeimagehosting.net/newuploads/kbdcb.png(resize)!
↑
(I want to put this function in a QFrame or a QTextEdit.) -
-
Thank you, Rahul! I'll try it.
-
You can use "QSizeGrip":http://qt-project.org/doc/qt-5.0/qtwidgets/qsizegrip.html#details
-
[quote author="Sam" date="1357125307"]You can use "QSizeGrip":http://qt-project.org/doc/qt-5.0/qtwidgets/qsizegrip.html#details [/quote]
Hi! Sam,
This is a useful and simple method for me.
Thank you so much.Code:
@
QSizeGrip *qs = new QSizeGrip(ui->MyFrame);
ui->MyFrame->layout()->addWidget(qs);
ui->MyFrame->layout()->setAlignment(qs, Qt::AlignBottom | Qt::AlignRight);
@Result:
!http://www.freeimagehosting.net/newuploads/o149f.png(c)! -
You are welcome,
Kindly Edit your first post and prepend [Solved] to the title.
Regards
Soumitra.