Bug 1221116 - Enable qt6 VCL plugin building
Summary: Enable qt6 VCL plugin building
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: LibreOffice (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: Martin Schreiner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-07 12:08 UTC by Robby Engelmann
Modified: 2024-06-17 19:30 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
overview with only partially visible file names (64.70 KB, image/png)
2024-06-04 18:45 UTC, Breinbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Engelmann 2024-03-07 12:08:57 UTC
As far as I can read here, a qt6 plugin is available already:
https://cgit.freedesktop.org/libreoffice/core/tree/vcl/qt6
Comment 1 Robby Engelmann 2024-04-17 15:47:46 UTC
Is there any time schedules already?
Is there information about how well the qt6 integration is usable?
Comment 2 Breinbauer 2024-04-29 07:33:02 UTC
For me, the qt5 backend is *very* laggy (resizing an image with the mouse takes several seconds, scrolling through a document is really awkward). The gtk backend works much better. I found some "rumors" that the qt5 backend is the culprit, therefore I would like to have qt6 backend enabled.

Also, now that Plasma 6 is out, qt6 becoming the default is to be expected?


Here is the meta bug for qt6 plugin: https://bugs.documentfoundation.org/show_bug.cgi?id=145734
and here for kf6: https://bugs.documentfoundation.org/show_bug.cgi?id=159700
Comment 3 Martin Schreiner 2024-05-06 15:20:08 UTC
Hi folks, I'm working on building with Qt6. I'll keep you posted.
Comment 4 Breinbauer 2024-05-06 15:41:08 UTC
Thanks, very much appreciated!

If you need some testing, I will gladly help.
Comment 5 Robby Engelmann 2024-05-06 18:44:12 UTC
Same here, could also help testing.
Comment 6 Martin Schreiner 2024-06-03 03:33:17 UTC
Ok folks, I got a Qt6 build kind of working. I'll post an update here tomorrow with an OBS repository we can test from. Also, any fixes I'll submit there, then we can submit to LibreOffice:Factory, and that will eventually land on openSUSE:Factory, and then on to Tumbleweed.
But we might be able to do all of this during this week.
Comment 7 Martin Schreiner 2024-06-04 13:56:55 UTC
Ok, we have a build for Tumbleweed we can test over here:
https://build.opensuse.org/project/show/home:mschreiner:libreoffice-qt6
Comment 8 Breinbauer 2024-06-04 18:45:05 UTC
OK, Installation was smooth. About dialog shows "VCL: kf6 (cairo+wayland)".
I did some editing of documents (writer and calc), worked without a problem. 
Some notes:
 * In the overview of documents the name of the documents is only partially visible (see attachment)
 * The Plasma 6 feature that a scrollbar click takes you to the position in the document and not just a page down is not working. Would have expected that it behaves the same with the qt6 plugin.
 * The laggy interface problem is the same as with qt5. I guess I have to investigate some more...

I'm going to do some more testing and will report issues.
Thanks for your work!
Comment 9 Breinbauer 2024-06-04 18:45:48 UTC
Created attachment 875306 [details]
overview with only partially visible file names
Comment 10 Martin Schreiner 2024-06-05 03:51:01 UTC
Hi Breinbauer,

Thank you very much for testing this.
I haven't submitted it to openSUSE:Factory yet, as I'm sure we need to drill down on these issues.

The slowness you're referring to, do you have a consistent way of reproducing it?
Anything I could do to replicate it over here?
Also, what hardware are you running? Just to be mindful of it, if you could share some details.

For the other two issues (document names only partially visible, plasma6 scrollbar click feature), do you know if there are upstream bugreports regarding this?

Thanks,
Martin
Comment 11 Breinbauer 2024-06-05 08:47:24 UTC
Did some more testing today: All dialogs I opened looked good. Actually, I do not see any difference to the kf5 version I used before.

The lag while scrolling has bothered me for over a year now. I just had hoped qt6 would fix it, but well...
https://bugs.documentfoundation.org/show_bug.cgi?id=152911 looks related, I will investigate further (as my qt6 hopes are shattered)
The problem occurs on my laptop (Intel CPU and graphics) and on the workstation (AMD CPU and Radeon graphics).

I filed a bug for the scollbar:
https://bugs.documentfoundation.org/show_bug.cgi?id=161424

Overview bug: I have to investigate. It's not occurring on my laptop.
Comment 12 Robby Engelmann 2024-06-05 09:01:13 UTC
Dear all,

I can confirm everything mentioned here (including the lag during scrolling). Thanks for activating the qt6 VCL!


My machine FTR:
Operating System: openSUSE Tumbleweed 20240604
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-1-default (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i7-13700H
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro Gen8 (MK1)
Comment 13 Martin Schreiner 2024-06-06 00:53:41 UTC
Hi folks, it's good that we're at least making some progress together here.

I'm aligning with the other LibreOffice maintainer, and we may improve the package so it will support all gtk3 / qt5 / qt6 simultaneously. We're not sure yet. But we  might make all libreoffice-gtk3 / libreoffice-qt5 / libreoffice-qt6 packages.

I'm not experiencing the slowness you're referring to when resizing an image.
Here are my specs, fairly mid-end, nothing special:

CPU: Ryzen 5 5600GT
Memory: 16GB DDR4 @ 3200Mhz
openSUSE Tumbleweed 20240531

Running the same libreoffice-qt6 build you're testing, I set an environment variable to force the qt6 VCL to be used:
export SAL_USE_VCLPLUGIN=qt6

X11 and i3-wm as a window manager, no compositors enabled.
When I open "About LibreOffice", I do see VCL: (qt6 + xcb).
I'll see if I can reproduce this under Wayland, and maybe you can also try on X11, and hopefully we'll arrive at a better conclusion.

I should note that this slowness would refer to something else other than this bug, so when qt6 lands on Factory/Tumbleweed, I'd be closing it.
We can talk on IRC, Discord, Slack, etc, if you like, so we can investigate all of these matters as a small team. Let me know.
Comment 14 Breinbauer 2024-06-06 05:59:06 UTC
I can confirm, that the slowness is only on wayland. Scrolling under X11 is working smoothly. As the problem was already existing with the qt5 build, I agree that it is not related to this bug.

Having a gtk package would be nice for testing. My flatpak installation, which uses gtk, does not have the scroll problem.

On a related note: I cannot reproduce the issue that document names are only partially visible. If it re-appears, I'm going to report it upstream.

Thanks again and looking forward to having this in the official repos.
Comment 15 Martin Schreiner 2024-06-17 19:30:53 UTC
Folks, I just submitted the request that enables QT6 support on Tumbleweed.

https://build.opensuse.org/request/show/1181364

Once it's accepted, in a couple of days, a new Tumbleweed snapshot will be published removing the qt5 package, and enabling the qt6 one. The QT6 package replaces the QT5 one, I've tested this procedure myself.

I'm closing this bug, as we've added support for QT6, we just need to wait a couple of days now.

Thanks,
Martin J. Schreiner