I get so, Widget window, use setWindowFlags (Qt: : FramelessWindowHint) : remove the border (see the official document said that doing so will not be able to adjust the size),
And then found an article like this:
The address
Running about his code, it is can adjust the size, but in the left, moving direction, on the other side will appear the phenomenon of jitter, I thought it was the bug of the code, and then wrote one myself, still can appear jitter, I return to check other people's code, and found that the code is no problem, high Geometry modification window width is no problem, as long as a change in the upper coordinate Geometry can appear jitter, if combined with frame, frame not shake form shake, in addition, I use a QSizeGrip in the upper left corner, drag the size is also will be shaking

The sick ah, see a few days, ask for help!

The class Widget: public QWidget
{
Q_OBJECT
Public:
Explicit Widget (QWidget * parent=nullptr);
~Widget();
Private:
QSizeGrip * qs.
};
Widgets: : widgets (QWidget * parent)
: QWidget (parent) {
setWindowFlags(Qt::FramelessWindowHint);
Qs=new QSizeGrip (this);
}
This code will effect the following

CodePudding user response:
Head ache, help wow
CodePudding user response:
Help





CodePudding user response:
In QML, please don't use qwidget
CodePudding user response:
My computer seems to be only UWP applications do not have this problem, other graphic software for no reason, don't know what's the black technologyCodePudding user response:
Look it use method is to adjust the size and then move, rather than by normal method, will naturally have this problemCodePudding user response:
The building Lord solved this problem, I also metCodePudding user response: