Bug 526972 - Icons-and-Text Task Manager elide boundary changed in Qt 6.12 to whole words instead of characters
Summary: Icons-and-Text Task Manager elide boundary changed in Qt 6.12 to whole words ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.7.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 527152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-10-12 13:49 UTC by Luke Horwell
Modified: 2026-10-26 23:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.2
Sentry Crash Report:


Attachments
Icons-and-Text task manager behaviour under Qt 6.12.0 (66.42 KB, video/mp4)
2026-10-12 13:49 UTC, Luke Horwell
Details
Icons-and-Text task manager behaviour under Qt 6.11.0 (60.29 KB, video/mp4)
2026-10-12 13:50 UTC, Luke Horwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Horwell 2026-10-12 13:49:59 UTC
Created attachment 197030 [details]
Icons-and-Text task manager behaviour under Qt 6.12.0

DESCRIPTION
Since upgrading to Qt 6.12.0, I noticed the elide (...) behaviour has changed for the Icons-and-Text Task Manager to a less desired way of truncating window titles too soon. It happens when a window title contains a word that is very long. This might be more apparent (i18n) with languages with long words.

STEPS TO REPRODUCE
1. Set the task manager to "Icons and Text Manager"
2. Set the panel height around 30 pixels.
3. Open windows that contain long words.
3. Open many windows, and observe text on the panel.

OBSERVED RESULT

The elide (...) happens after whole words, e.g. `Quick Settings - System...     `

EXPECTED RESULT

The elide (...) happens when there is no more space left, e.g. `Quick Settings - System Set...`

The previous Qt 6.11 behaviour is desirable as it makes better use of the available space.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.30.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
An easy program to try is Kate/KWrite - create a new file and type something very long (without spaces) on the first line. Under Qt 6.12.0, you'll see "Untitled....                         " and a large gap. Whereas under Qt 6.11.0, you'd see the first part of that long line, e.g. "Untitled - MyVeryLongWindowTitl..."
Comment 1 Luke Horwell 2026-10-12 13:50:57 UTC
Created attachment 197031 [details]
Icons-and-Text task manager behaviour under Qt 6.11.0

Attached is another video showing the old behaviour after downgrading the packages to Qt 6.11.0.
Comment 2 Marco Martin 2026-10-20 07:49:10 UTC
*** Bug 527152 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2026-10-20 19:32:41 UTC
I can reproduce the issue.
Comment 4 Nate Graham 2026-10-20 19:42:16 UTC
I can confirm that this diff restores the old behavior:

diff --git applets/taskmanager/qml/Task.qml applets/taskmanager/qml/Task.qml
index 1902cdc111..6506fca5ee 100644
--- applets/taskmanager/qml/Task.qml
+++ applets/taskmanager/qml/Task.qml
@@ -624,7 +624,7 @@ PlasmaCore.ToolTipArea {
             bottomMargin: taskFrame.margins.bottom
         }
 
-        wrapMode: (maximumLineCount === 1) ? Text.NoWrap : Text.Wrap
+        wrapMode: (maximumLineCount === 1) ? Text.NoWrap : Text.WrapAnywhere
         elide: Text.ElideRight
         textFormat: Text.PlainText
         verticalAlignment: Text.AlignVCenter

Which means that the behavior of `Text.Wrap` changes in Qt 6.12. It seems to *generally* be still working. This small test program work as expected when I resize the window to be very small:

import QtQuick
import QtQuick.Controls as QQC
import QtQuick.Layouts

Item {
    width: 500
    height: 500

    Rectangle {
        color: "lightblue"
        anchors.centerIn: parent
        width: parent.width / 2
        height: parent.height / 2

        QQC.Label {
            anchors.fill: parent
            text: "This exceptionally wordy label contains voluminous verbiage!"
            wrapMode: Text.Wrap
        }
    }
}

I think I see what changed: dashes and em-dashes are now more aggressively considered to be word boundaries. This doesn't seem wrong per se, so I think the best way of adapting here is to use the "wrap anywhere" mode explicitly.
Comment 5 Bug Janitor Service 2026-10-20 19:48:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/4096
Comment 6 Nate Graham 2026-10-26 22:48:58 UTC
Git commit b4c0de304f441ca3a2663dc4d07f0d6b16ddea26 by Nate Graham.
Committed on 26/10/2026 at 21:23.
Pushed by ngraham into branch 'master'.

applets/taskmanager: wrap labels anywhere

Previously we were using Text.Wrap, which means "prefer word boundaries
for wrapping, but wrap in the middle of a word if that's impossible".

In Qt 6.12, dashes and em-dashes are now more aggressively considered to
be word boundaries. There's nothing wrong per se about this change, but
it doesn't work super well for the task manager where there's a lot of
punctuation and space is very limited. So let's switch to
Text.WrapAnywhere to maximize space efficiency.
FIXED-IN: 6.8.2

M  +1    -1    applets/taskmanager/qml/Task.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/b4c0de304f441ca3a2663dc4d07f0d6b16ddea26
Comment 7 Nate Graham 2026-10-26 23:49:10 UTC
Git commit 1d0eaf933a8cbd316125a2d91aff3a2401b4b691 by Nate Graham.
Committed on 26/10/2026 at 22:54.
Pushed by ngraham into branch 'Plasma/6.8'.

applets/taskmanager: wrap labels anywhere

Previously we were using Text.Wrap, which means "prefer word boundaries
for wrapping, but wrap in the middle of a word if that's impossible".

In Qt 6.12, dashes and em-dashes are now more aggressively considered to
be word boundaries. There's nothing wrong per se about this change, but
it doesn't work super well for the task manager where there's a lot of
punctuation and space is very limited. So let's switch to
Text.WrapAnywhere to maximize space efficiency.
FIXED-IN: 6.8.2


(cherry picked from commit 09a9f808e43dc9da21167e9d7f11dd5e10b84b37)

Co-authored-by: Nate Graham <nate@kde.org>

M  +1    -1    applets/taskmanager/qml/Task.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/1d0eaf933a8cbd316125a2d91aff3a2401b4b691