I am programming with Python on Linux as a hobby and have done some small GUI applications with Qt (PySide6). Working with Linux/Kubuntu, I want to use kirigami with my Python Qt apps but the installation guide for Kirigami lacks the necessary information for Debian/Ubuntu based distros.
The reason why it’s like this is that back when I updated it 24.04 wasn’t out yet, and:
Kubuntu had only just released PyQt6 with 23.10 (much less users than LTS)
even now Kubuntu doesn’t have PySide6
even now Kubuntu doesn’t have Qt6 Kirigami
Which makes this a tad complicated to support (that is, we cannot). I’ll see that I update the tutorial with at least a few potential solutions or with a note explaining how to learn it regardless, I’ll need to test a few things first (I vaguely recall trying the PyQt tutorial with distrobox back then for example).
I am not restricted to PySide6, I’d have no problems migrating to PyQt6 if that worked for Kubuntu 23.10 and later. In this case, how would I install kirigami for working with PyQt6 on Kubuntu? Thanks again!
All you need to do is set up distrobox with some up-to-date distro, enter the distrobox, and perform the same commands as the tutorial from within that shell.
With this, it doesn’t matter which version of Ubuntu you’re using (as long as you can run distrobox). And both PyQt6 and PySide6 will be doable.
Thanks for your replies. I did not work with Distrobox yet. In the meanwhile, I updated to (K)Ubuntu 24.04, but the import doesn’t work either. As this topic results in an disproportional effort I better look further at Qt for Python itself. Thanks again!
Kubuntu 24.04 still ships Plasma 5 and Frameworks 5; you’ll need Kubuntu 24.10 or newer to get Plasma 6 and Frameworks 6, which should get you the versions of KDE’s software and development libraries that are needed to use the guide.