Summary: | Initial view item's opacity is set to 0 | ||
---|---|---|---|
Product: | [Applications] Elisa | Reporter: | Jack Hill <jackhill3103> |
Component: | general | Assignee: | Matthieu Gallien <matthieu_gallien> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | nate, nicolas.fella |
Priority: | NOR | Keywords: | qt6 |
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jack Hill
2023-09-15 22:24:44 UTC
possibly only happens when a view isn't embedded into the sidebar Qt version is 6.5.2 from openSUSE repos Is this with a released version, or a git master version built with Qt 6? This is git master with Qt6, and it's caused by browseStackView's replaceEnter transition -- commenting out this transition fixes it. It might be a Qt bug since using StackView.push() or setting the replace operation to StackView.Immediate doesn't help. I actually can't reproduce that issue right now with current git master, but if I apply https://invent.kde.org/multimedia/elisa/-/merge_requests/496, it comes back. Never mind, now it's fixed with that MR as well. This is almost certainly an upstream bug since I can reproduce it with a fresh pure QML project. Btw did you apply the patch I suggested in the MR? Because that disables the transition so the issue is not noticeable. If you didn't then I guess it must've been fixed by magic Never mind, I had actually failed to apply the MR correctly and was building master. it's still broken for me with that MR. You could well be right that it's a Qt bug, but then we need to either fix it upstream, or work around it in Elisa. Git commit 3d63c4fcf1de7a551322ac234755fca3c1f99cc6 by Nate Graham, on behalf of Jack Hill. Committed on 05/10/2023 at 20:32. Pushed by ngraham into branch 'master'. ContentView: force ReplaceTransition when replacing the stack Normally Qt will use the Immediate transition if the stack is empty, but this behaviour is bugged when using OpacityAnimator. Instead of setting properties to their `to` value, they are set to their `from` value (these are defined in the Transition). This results in the initial view item having an opacity of 0. The workaround is to force a ReplaceTransition. See https://bugreports.qt.io/browse/QTBUG-117720 M +3 -1 src/qml/ContentView.qml https://invent.kde.org/multimedia/elisa/-/commit/3d63c4fcf1de7a551322ac234755fca3c1f99cc6 |