Bug 454655 - Strange Behavior Under Wayland
Summary: Strange Behavior Under Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: ux-ui (other bugs)
Version First Reported In: 5.1.2
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-31 11:34 UTC by ybx332
Modified: 2025-08-31 03:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ybx332 2022-05-31 11:34:14 UTC
SUMMARY
 Under wayland, the kmymoney will not work properly with calculator and the date setting. The calculator will not pop-up at right place and use the arrow to change the date will cause the software behave strangely.


STEPS TO REPRODUCE
1. Open the kmymoney under wayland
2.  Use the calculator
3.  Change the date

OBSERVED RESULT
Behave abnormally

EXPECTED RESULT
Behave normally

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version:  5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
When I change the date, the output in the terminal.
Setting a QCompleter on non-editable QComboBox is not allowed.
Setting a QCompleter on non-editable QComboBox is not allowed.
Comment 1 Thomas Baumgart 2022-05-31 16:28:24 UTC
Is this a possible duplicate of bug #446990 ?
Comment 2 ybx332 2022-06-01 02:54:58 UTC
(In reply to Thomas Baumgart from comment #1)
> Is this a possible duplicate of bug #446990 ?

Partly. The date problem is related to that. But the calculator problem isn't. The calculator problem is that the calculator itself will not pop-up at the right place, Instead, each time I need to click it twice to make it pop-up at the right place. The first time I click it it will just pop-up at the left corner of the screen.
Comment 3 Thomas Baumgart 2025-07-31 06:50:48 UTC
Is this still valid with 5.2 or newer?
Comment 4 Jack 2025-07-31 16:49:55 UTC
Does KMyMoney have any control over where the calculator pops up?  My reading of the code shows it doesn't even try, so the location would be system dependent.
If I click the calculator button more than once, I get a new calculator (always center of the screen for me, using Wayland) for each click.
What  do you mean by "the right place?"
Comment 5 Thomas Baumgart 2025-08-01 06:09:48 UTC
KMyMoney positions the popup relative to the basewidget (date or amount widget) using its PopupPositioner object (https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/widgets/popuppositioner.cpp). Unfortunately, this does not seem to work either with Qt6 or Wayland (since the call to mapToGlobal in line 27 always returns the relative position to the application window). Others (see https://www.qtcentre.org/threads/50737-Can-t-seem-to-get-global-screen-position) seem to have the same problem to figure out the global position of a widget.
Comment 6 Bug Janitor Service 2025-08-16 03:46:29 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2025-08-31 03:47:35 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.