[Translated]Child widget border appears clipped when parent repaints first
-
I'm working with Qt 5.14.2 using C++.
When the parent widget repaints, the child widget is included in the repaint area.
However, the child widget seems to be painted before the parent, and as a result, the border (or edge) of the child widget appears clipped or overdrawn by the parent.How can I prevent the parent widget from overpainting the child widget's border during repaint?
Is there a proper way to control the painting order or clip the parent drawing region to avoid overlapping the child?Any advice would be appreciated. Thanks!
-
I'm working with Qt 5.14.2 using C++.
When the parent widget repaints, the child widget is included in the repaint area.
However, the child widget seems to be painted before the parent, and as a result, the border (or edge) of the child widget appears clipped or overdrawn by the parent.How can I prevent the parent widget from overpainting the child widget's border during repaint?
Is there a proper way to control the painting order or clip the parent drawing region to avoid overlapping the child?Any advice would be appreciated. Thanks!
-
A lot of painting bugs have been fixed in Qt 6.
You may want to use a more recent version of Qt (>= 6.5) and see whether it still happens.
5.14 has been EOL for a long time.