Summary: | FormLayout flashes or flickers when initially loading, as if it starts in narrow mode and then immediately changes into wide mode | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | Vishwas Parpattegar <vishwasparpattegar> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | benjamindedieu, bugseforuns, fernandommuniz, jpetso, kde, kde, natalie_clarius, nate, notmart, vishwasparpattegar |
Priority: | NOR | Keywords: | qt6 |
Version First Reported In: | Master | ||
Target Milestone: | Not decided | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Vishwas Parpattegar
2023-11-11 03:07:20 UTC
Can reproduce. That's because layout (specifically, FormLayout) is based on timers instead of polish lifecycle callbacks. I'm afraid it can't be entirely fixed without rewriting it to the native code, because we don't get enough level of control in QML code; an alternative to that would be to recalculate the whole layout of every geometry or children change of anything, which would be (1) quite expensive computationally-wise, (2) prone to binding loops and polish loops. Right, I can see it when I switch between applet config pages for the Task Manager. The FormLayout flickers in the same way as it loads. Flicker in the Energy Saving module was fixed via https://invent.kde.org/plasma/powerdevil/-/merge_requests/302 by reusing one form for all power state profiles. Nate's reproduction in the "Configure Task Manager" dialog (and likely in several other spots) can still be observed. *** Bug 500572 has been marked as a duplicate of this bug. *** *** Bug 502100 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 410352 *** *** Bug 505892 has been marked as a duplicate of this bug. *** Git commit 7319360c81238a4e766f3c7093d4f607745183da by Niccolò Venerandi. Committed on 27/08/2025 at 18:58. Pushed by niccolove into branch 'master'. Immediately update value for wideImplicitWidth This solves some initial load flickering in some form layouts, such as the accessibility subpages. M +7 -10 src/layouts/FormLayout.qml https://invent.kde.org/frameworks/kirigami/-/commit/7319360c81238a4e766f3c7093d4f607745183da |