https://bugs.kde.org/show_bug.cgi?id=489516

            Bug ID: 489516
           Summary: The space reserved for the text of a QDockWidget tab
                    is not enough in some situations
    Classification: Plasma
           Product: kwin
           Version: 6.1.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: t...@stonemx.de
  Target Milestone: ---

Hi all,

this is one weird bug. I'm not completely sure if KWin is to blame, or if the
problem resides elsewhere. I'm also not sure how to track this down. But I have
a minimal example producing the problem reliably, so I hope you know ;-)

The problem is that, using a Plasma 6 desktop and Noto Sans 10pt as the font,
it happens that when tabifying QDockWidgets of a Qt 6 program, the resulting
tab texts are sometimes cut off, although there would be enough space. Please
see the screenshots I'll attach to see what I mean. This happens both with
Breeze and Fusion, so I think it's no style issue.

I can produce this exact behavior on my Gentoo desktop and also on my Artix
notebook. Both running plasma 6.1.1, Gentoo with Qt 6.7.1, Artix with 6.7.2.

This does not happen when using a Plasma 5 desktop, neither for a Qt 5 build,
nor for a Qt 6 build. Everything is fine using Plasma 5. I tried this using a
current KUbuntu in a QEMU VM. Both the Qt 5 and 6 builds of my demo don't cut
off the text.

But I could also reproduce this using am OpenSUSE Tumbleweed QEMU VM, running a
Plasma 6 desktop. Here, the Qt 5 build looks fine, but the Qt 6 build cuts off
the text, just as with my Gentoo and Artix machines.

Interestingly, the cutoff does not happen when:
- Another Font is used
- Noto Sans is used, but another size (9 or 11)
- The docks are not hidden first
- The docks are hidden after a small delay, e.g. by a QTimer::singleShot
waiting 100 ms (0 ms has the same result as hiding them directly)
- The name of the cut off dock is slightly changed, e.g. from "Ergebnisse" to
"ErgebnisseX", "Ergebnisse " or similar
- The name of the "Extras" menu entry is changed, e.g. from "Extras" to "X"
(how can that ever affect this at all?!)

Well, as said, this is an odd one ...

I'll attach the screenshots, one using Breeze and one using Fusion, as well as
the minimal example producing the bug (as said, only when built against Qt 6,
using Noto Sans 10pt and when run on a Plasma 6 desktop).

I'd really love to help tracking this down if I can!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to