Summary: | With Qt 6.7, items in combobox menus are sized incorrectly and unreadable | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-qqc2-desktop-style | Reporter: | Patrick Silva <bugseforuns> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahiemstra, dmatteo002, justamail12111, kde, nate, nicolas.fella, noahadvs, notmart, semlraug, sitter |
Priority: | NOR | Keywords: | qt6 |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/73303bf4e23d41c84f3d18e61cc9a44c6ba4f55b | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | screen recording |
Qt bug maybe? On Qt 6.6 this still works fine. Bug 479909 is another occurrence in a Plasma config window. Looks like a general issue in qqc2-desktop-style on Qt 6.7; moving there. *** Bug 479909 has been marked as a duplicate of this bug. *** I see it for very few comboboxes only, it doesn't seem to be a general issue It depends on the type of model apparently. This is broken: import QtQuick import QtQuick.Controls Item { ComboBox { model: [ { "label": "Small", "spacing": 0 }, { "label": "Normal", "spacing": 1 }, { "label": "Large", "spacing": 3 }, ] textRole: "label" } } This works: ComboBox { model: ["A", "B", "C"] currentIndex: 2 } It's broken in 6.7 with org.kde.desktop and org.kde.breeze, it works with Material and Imagine It works with all styles in 6.6 This seems to be caused by https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=b9bfdea0e2c6721d2306af0ecc44f88da9988957, which changes the behavior in https://invent.kde.org/frameworks/qqc2-desktop-style/-/blob/master/org.kde.desktop/ComboBox.qml?ref_type=heads#L40 We probably want to follow https://codereview.qt-project.org/c/qt/qtdeclarative/+/467010 in our ComboBox impl A possibly relevant merge request was started @ https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/358 *** Bug 480087 has been marked as a duplicate of this bug. *** *** Bug 480140 has been marked as a duplicate of this bug. *** Git commit 73303bf4e23d41c84f3d18e61cc9a44c6ba4f55b by Nicolas Fella. Committed on 19/01/2024 at 00:15. Pushed by nicolasfella into branch 'master'. Simplify ComboBox delegate This matches the upstream styles See https://codereview.qt-project.org/c/qt/qtdeclarative/+/467010 M +3 -1 org.kde.desktop/ComboBox.qml https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/73303bf4e23d41c84f3d18e61cc9a44c6ba4f55b |
Created attachment 164777 [details] screen recording STEPS TO REPRODUCE 1. open Dolphin 2. right-click on a folder and choose "Properties" 3. click on "Share" tab 4. check "Share this folder with other computers on the local network" option 5. open any combobox OBSERVED RESULT the options from the comboboxes are not readable. Please watch the attached screen recording. EXPECTED RESULT the options from the comboboxes are readable. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.91.0 KDE Frameworks Version: 5.247.0 Qt Version: 6.7.0 Graphics Platform: Wayland