Home > Back-end >  QT can appear without borders window resize dithering phenomenon, excuse me what method can solve?
QT can appear without borders window resize dithering phenomenon, excuse me what method can solve?

Time:12-17

Beginners Qt, play to the iron plate.==
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 technology

CodePudding user response:

Look it use method is to adjust the size and then move, rather than by normal method, will naturally have this problem

CodePudding user response:

The building Lord solved this problem, I also met

CodePudding user response:

reference cloud loose last month, 4/f, according to jiang's reply:
use QML don't use qwidget
but lost all QML widget to use the function of a QTextEdit also want to be embedded in the QML QTextEdit or add the function of TextEdit slowly QTextEdit functional headache to have

CodePudding user response:

From the user point of view, the two video I don't see the difference on the effect, may not need to deal with this problem
  • Related