Bug 479488 - With Qt6.7, pressing Down key in search field gives TypeError: Property 'onDownPressed' of object QQuickKeysAttached(0x564e9ca304a0) is not a function
Summary: With Qt6.7, pressing Down key in search field gives TypeError: Property 'onDo...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (other bugs)
Version First Reported In: master
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-06 22:58 UTC by fanzhuyifan
Modified: 2024-01-08 16:14 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fanzhuyifan 2024-01-06 22:58:38 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open system settings
2. enter something in search field
3. press Down key

OBSERVED RESULT
Nothing happens, the following error message is printed:
> qrc:/qt/qml/org/kde/systemsettings/CategoriesPage.qml:93: TypeError: Property 'onDownPressed' of object QQuickKeysAttached(0x564e9ca304a0) is not a function


EXPECTED RESULT
Should navigate to the first search result.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.7.0
Kernel Version: 6.6.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Zephyrus G16 GU603VV_GU603VV
System Version: 1.0

ADDITIONAL INFORMATION
Does not happen on neon unstable compiled against Qt 6.6. So this might be a Qt 6.7 issue.
Comment 1 Nicolas Fella 2024-01-06 23:11:15 UTC
Yes, looks like a Qt bug.

Could you create a minimal example and report it to https://bugreports.qt.io/ ?
Comment 2 fanzhuyifan 2024-01-07 00:52:26 UTC
Up(In reply to Nicolas Fella from comment #1)
> Yes, looks like a Qt bug.
> 
> Could you create a minimal example and report it to
> https://bugreports.qt.io/ ?

Upstream Qt bug report: https://bugreports.qt.io/browse/QTBUG-120573
Comment 3 Bug Janitor Service 2024-01-08 16:10:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/systemsettings/-/merge_requests/281
Comment 4 fanzhuyifan 2024-01-08 16:14:02 UTC
Git commit f519acbf86a794b876585d8be7ab930b23446734 by Yifan Zhu.
Committed on 08/01/2024 at 17:08.
Pushed by davidedmundson into branch 'master'.

Call signals instead of signal handlers

Directly calling signals is the supported way to send signals.
Calling signal handlers worked in the past, but will be phased out in
the future (https://bugreports.qt.io/browse/QTBUG-120573).

M  +3    -3    app/sidebar/qml/CategoriesPage.qml
M  +2    -2    app/sidebar/qml/SubCategoryPage.qml

https://invent.kde.org/plasma/systemsettings/-/commit/f519acbf86a794b876585d8be7ab930b23446734