Bug 497703 - Basic Qt Functionality does not work on KDE
Summary: Basic Qt Functionality does not work on KDE
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.2.4
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-20 04:48 UTC by gal.mateo
Modified: 2025-01-04 03:47 UTC (History)
2 users (show)

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


Attachments
py_side6_version.py (1.09 KB, text/x-python)
2024-12-20 04:48 UTC, gal.mateo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gal.mateo 2024-12-20 04:48:58 UTC
Created attachment 176779 [details]
py_side6_version.py

The following Github project contains a simple draggable window written in PyQt6:
https://github.com/Khufos/Pyqt6-Title-hide-and-window-move
I even reproduced the PySide6 version to make sure that the problem is not with PyQt6.
You can find the PySide6 version in the attachment.

The expected behavior is that the window is draggable by clicking and holding it.
It works fine on Windows 11 / Arch Linux (XFCE) / Arch Linux (LXDE) / Arch Linux (Gnome)
But it does not work at all on Arch Linux with KDE.
Comment 1 Nate Graham 2024-12-20 19:14:36 UTC
The example program doesn't work for me:

QIODevice::read (QFile, "bar_hide.ui"): device not open
Designer: An error has occurred while reading the UI file at line 1, column 0: Premature end of document.
Traceback (most recent call last):
  File "/home/nate/Desktop/test.py", line 30, in <module>
    window = Page()
  File "/home/nate/Desktop/test.py", line 12, in __init__
    self.ui = loader.load(ui_file, self)
              ~~~~~~~~~~~^^^^^^^^^^^^^^^
RuntimeError: Unable to open/read ui device

Regardless, since clearly it does run for you, can you reproduce the issue in a Plasma X11 session? Or is it broken there too?

And when you say it works in other environments, do you mean that the exact same program works as expected in those environments?
Comment 2 Bug Janitor Service 2025-01-04 03:47:32 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!