| Summary: | Popup with multi-line text is sized as if it were single line | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | ratijas <me> |
| Component: | general | Assignee: | Marco Martin <notmart> |
| Status: | REOPENED --- | ||
| Severity: | normal | CC: | ahiemstra, kde, nate, noahadvs |
| Priority: | NOR | ||
| Version First Reported In: | 5.85.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | KDE QQC2 Desktop style popup is too wide | ||
|
Description
ratijas
2021-08-31 18:54:03 UTC
There is a signal-based API to get natural width of each line as soon as they are being laid out by text renderer. Might use that as a workaround; maybe in conjunction with off-screen rendering first, to prevent glitching and shuttering from fast consecutive resizes. https://bugreports.qt.io/browse/QTBUG-78277 https://doc.qt.io/qt-5/qml-qtquick-text.html#lineLaidOut-signal Seems like a known bug in Qt: https://bugreports.qt.io/browse/QTBUG-83630 Fix Version/s: 6.1.1, 6.2.0 Alpha Yep, and it looks like that's already fixed in later versions of Qt. > Yep, and it looks like that's already fixed in later versions of Qt. Does not seem so. Both commits were reverted due to regressions. We might need to roll out our own font metrics component with proper line breaks / wraps handling. See also: https://t.me/vdgmainroom/296739 Oh, that sucks. |