[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1118281: qml6-module-qtquick: ProgressBar `indeterminate: true` stopped working and other layout regression



Package: qml6-module-qtquick
Version: 6.9.2+dfsg-4
Severity: normal
Forwarded: https://bugreports.qt.io/browse/QTBUG-141088
Control: tags -1 affects src:riseup-vpn

Hi,

Since the QT 6.9.3 update, riseup-vpn's package ProgressBar does not show up
anymore.

This is the code in question:

```
ProgressBar {
            id: splashProgress
            width: appWidth * 0.8 - 60
            indeterminate: true
            anchors.horizontalCenter: parent.horizontalCenter
        }
```

However, if I add in a dummy animation (Rectangle size 0 height 0) it starts working again.
It seems to me that QT is aggressively optimizing any rendering unless something happens
on the UI.

Along with this, the MOTD screen also vanished.

I added in a workaround with a timer that forces re-rendering of the progressbar.

The code in question is:

```
Item {
    id: motdBox
    width: parent.width
    property var motdText: ""
    property var motdLink: ""
    property var url: ""
    anchors.horizontalCenter: parent.horizontalCenter

    Rectangle {

        id: labelWrapper
        color: "transparent"
        height: label.paintedHeight + Theme.windowMargin
        width: parent.width
        anchors.verticalCenter: parent.verticalCenter


```

Adding a `height: 200` in the `Item` field fixes this but this looks wrong. It /really/ should
not reduce the height of the item to 0, and the item should inherit its height from Rectangle
and labels.

Both of these are regressions. It was working perfect in QT 6.8.2 before the latest upload happened.
I've also forwarded it upstream and opening a bug report here to better track this.

-- 
Best,
Nilesh


Reply to: