Package Details: qt5-styleplugins

Git Clone URL: (read-only, click to copy)
Package Base: qt5-styleplugins
Description: Additional style plugins for Qt5
Upstream URL:
Keywords: Qt5 style
Licenses: LGPL
Submitter: arojas
Maintainer: yrlf
Last Packager: yrlf
Votes: 66
Popularity: 3.63
First Submitted: 2020-05-26 19:14 (UTC)
Last Updated: 2022-06-26 14:42 (UTC)

Pinned Comments

yrlf commented on 2020-09-12 18:03 (UTC) (edited on 2022-06-22 15:28 (UTC) by yrlf)

Quick reminder: Qt 5.15.5 has been released; Users of this package will need to rebuild qt5-styleplugins (yay -S --rebuild qt5-styleplugins), otherwise Qt applications will crash.

The pkgrel of this package has been bumped so this should be done automatically by your AUR helper.

Latest Comments

samueldy commented on 2022-07-04 04:14 (UTC)

Note that building with a polluted path or library path can cause this package to fail to build. For example,

/usr/bin/ error: cannot open /home/samueldy/miniconda3/envs/python-email/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib64/ No such file or directory                                                                                                                                                 
collect2: error: ld returned 1 exit status                                                                                                                                                                                                                                                                                
make[4]: *** [Makefile:102: ../../../../plugins/styles/] Error 1                                                                                                                                                                                                                                          
make[4]: Leaving directory '/home/samueldy/.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2'                                                                                                                                                               
make[3]: *** [Makefile:151: sub-gtk2-make_first] Error 2                                                                                                                                                                                                                                                                  
make[3]: Leaving directory '/home/samueldy/.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles'                                                                                                                                                                    
make[2]: *** [Makefile:73: sub-styles-make_first] Error 2                                                                                                                                                                                                                                                                 
make[2]: Leaving directory '/home/samueldy/.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins'                                                                                                                                                                           
make[1]: *** [Makefile:47: sub-plugins-make_first] Error 2                                                                                                                                                                                                                                                                
make[1]: Leaving directory '/home/samueldy/.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src'                                                                                                                                                                                   
make: *** [Makefile:47: sub-src-make_first] Error 2                                                                                                                                                                                                                                                                       
==> ERROR: A failure occurred in build().                                                                                                                                                                                                                                                                                 
 -> error making: qt5-styleplugins        

This happens because I tried to build in a shell with a Conda environment activated.

yrlf commented on 2022-06-26 14:43 (UTC)

@JPenuchot: Thanks! Added this hook since it will hopefully reduce the amount of confusion whenever Qt updates.

JPenuchot commented on 2022-06-23 14:44 (UTC)

Thanks for the bump! By the way, maybe a notification hook similar to this could be added?

Operation = Upgrade
Type = Package
Target = qt5-base

When = PostTransaction
Exec = /usr/bin/echo [WARNING] qt5-base was updated, qt5 applications will break until qt5-styleplugins is rebuilt.

yrlf commented on 2022-06-22 15:27 (UTC)

@miskanera, @q234rty: pkgrel bumped, which will trigger a rebuild that fixes the crashes with the new Qt version

miskanera commented on 2022-06-22 15:14 (UTC)

After upgrading to qt 5.15.5, some programs stopped running unless qt5-styleplugins was removed.

q234rty commented on 2022-05-15 19:14 (UTC)

Well, it's time to bump again :D

kanehekili commented on 2022-03-25 22:03 (UTC)

Tried to compile, but failed with:

qgtk2dialoghelpers.cpp:46:10: fatal error: gtk/gtk.h: No such file or directory 46 | #include <gtk/gtk.h>

gtk2 and gtk3 are installed...

yrlf commented on 2022-03-16 12:11 (UTC)

@patrick96: done

patrick96 commented on 2022-03-16 11:31 (UTC)

@yrlf Could you bump the pkgrel to force all AUR helpers to rebuild the package? This will save a lot of people a lot of headache.

rekman commented on 2022-03-16 02:41 (UTC)

Qt 5.15.3 has been released. As stated in the pinned comment, you will need to rebuild this package or Qt applications will crash.

MarsSeed commented on 2022-03-14 11:58 (UTC)


I suggest to make this a split package: build once, but package the base and a qt5-styleplugins-gtk2 separately.

The latter should contain:

  • usr/lib/qt/plugins/styles/
  • usr/lib/qt/plugins/platformthemes/
  • usr/lib/cmake/Qt5Widgets/Qt5Widgets_QGtk2StylePlugin.cmake
  • usr/lib/cmake/Qt5Gui/Qt5Gui_QGtk2ThemePlugin.cmake

Because gtk2 is not mandatory for the base library to work, only for the above-mentioned optional additions.

If you split this package, the -gtk2 one can be optional for the main package.

Also in this case, gtk2 should be a makedepend for the base package, and a normal depend for the -gtk2 subpackage.

allgood38 commented on 2021-06-11 15:58 (UTC)

I think that there might be a race condition somewhere, or a shell invocation issue. I had an issue with the first build attempt (clean environment, so the --rebuild shouldn't have been needed to get around the QT package update) and I got a strange error from moc complaining about too many files.

But the odd thing was that it was in the bash session I called makepkg from, rather than a subshell. I could see the moc invocation from bash history, along with all the calls to gcc. The really weird part, was that the package was finished before the call to moc. I'll see if I can do some debugging on it next week, maybe my set up is weird.

Anyways, thanks for making this PKGBUILD, when it worked, its awesome.

tom commented on 2021-02-04 16:55 (UTC) (edited on 2021-07-02 22:21 (UTC) by eschwartz)

An error occured while update:

Beginne build()...


I/usr/lib/qt/mkspecs/linux-g++ -o .obj/qgtk2dialoghelpers.o qgtk2dialoghelpers.cpp
In Datei, eingebunden von /usr/include/gtk-2.0/gdk/gdkcairo.h:28,
                 von /usr/include/gtk-2.0/gdk/gdk.h:33,
                 von /usr/include/gtk-2.0/gtk/gtk.h:32,
                 von qgtk2dialoghelpers.cpp:46:
/usr/include/gtk-2.0/gdk/gdkpixbuf.h:37:10: schwerwiegender Fehler: gdk-pixbuf/gdk-pixbuf.h: Datei oder Verzeichnis nicht gefunden
   37 | #include <gdk-pixbuf/gdk-pixbuf.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
Kompilierung beendet.
make[4]: *** [Makefile:741: .obj/qgtk2dialoghelpers.o] Fehler 1
make[4]: Verzeichnis „/home/.../.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/platformthemes/gtk2“ wird verlassen
make[3]: *** [Makefile:47: sub-gtk2-make_first] Fehler 2
make[3]: Verzeichnis „/home/.../.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/platformthemes“ wird verlassen
make[2]: *** [Makefile:48: sub-platformthemes-make_first] Fehler 2
make[2]: Verzeichnis „/home/.../.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins“ wird verlassen
make[1]: *** [Makefile:47: sub-plugins-make_first] Fehler 2
make[1]: Verzeichnis „/home/.../.cache/yay/qt5-styleplugins/src/qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src“ wird verlassen
make: *** [Makefile:47: sub-src-make_first] Fehler 2
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
error making: qt5-styleplugins

gamezelda commented on 2020-12-27 23:14 (UTC)

@Brottweiler: gcc is already assumed to be installed if you're building from AUR.

"Ensure the base-devel package group is installed in full (pacman -S --needed base-devel)."

Brottweiler commented on 2020-12-27 23:05 (UTC)

gcc needs to be makedepend

arojas commented on 2020-11-24 09:30 (UTC) (edited on 2020-11-24 09:31 (UTC) by arojas)

May I suggest you to add something like this in package():

_qtver=$(pkg-config --modversion Qt5Core)


This will stop the flood of bogus bug reports we're getting every time Qt is updated.

txtsd commented on 2020-11-24 05:07 (UTC)

Can you make a pacman hook to trigger a rebuild when Qt updates, instead of requiring users to manually rebuild?

mynacol commented on 2020-11-22 18:00 (UTC)

Please bump the pkgrel again, as qt5 is now at 5.15.2

RX14 commented on 2020-09-13 11:14 (UTC) (edited on 2020-09-13 11:14 (UTC) by RX14)

Please bump the pkgrel if it needs a rebuild. The git log shows this has been done in the past.

yrlf commented on 2020-09-12 18:03 (UTC) (edited on 2022-06-22 15:28 (UTC) by yrlf)

Quick reminder: Qt 5.15.5 has been released; Users of this package will need to rebuild qt5-styleplugins (yay -S --rebuild qt5-styleplugins), otherwise Qt applications will crash.

The pkgrel of this package has been bumped so this should be done automatically by your AUR helper.

TheRepoClub commented on 2020-06-21 12:43 (UTC)

@SpacingBat3 done pal :)

SpacingBat3 commented on 2020-06-18 21:33 (UTC)

This package is compatible with aarch64 architecture (at least I could built it successfully with "yay" package and select all of styles with qt5ct).

So my actual request is to add "aarch64" arch (with exact this name) to this package PKGBUILD, because it could be built without any problems. Some package managers like pamac (preinstalled with Manjaro) denies building progress while reading ARCH variable in PKGBUILD, making them harder to actually install and update.

DAMO238 commented on 2020-06-09 17:03 (UTC)

@Ferdi265: Thanks, that worked beautifully!

yrlf commented on 2020-06-08 23:01 (UTC)

@DAMO238: This exact error is what I experienced recently:

The solution is to recompile qt5-styleplugins.

With an AUR helper like yay, this can be done with yay -S --rebuild qt5-styleplugins

DAMO238 commented on 2020-06-08 21:31 (UTC)

When qt5ct is set to 'gtk2' and QT_QPA_PLATFORMTHEME=qt5ct, every qt5 application segfaults. The backtrace is in the following gist: It looks like an infinite recursion error to me (although I'm no expert in these things). I have also tried using the git version to no avail.

TheRepoClub commented on 2020-06-04 13:41 (UTC)

ferdi thanks for patching this again mate :)

yrlf commented on 2020-06-03 22:19 (UTC) (edited on 2020-06-03 22:33 (UTC) by yrlf)

@gamezelda: I noticed that too, but I initially thought it was a bug in qt5ct, so I patched it there via an ugly workaround that I didn't upstream because I was sure it wasn't the real source of the problem.

Thank you for tracking that down! I'll integrate your patch into the package.

Edit: I can't really reproduce your problem any more by downgrading to older versions of qt5-styleplugins, but I definitely experienced the same ugliness with keepassxc (I use a light theme, but the difference in background color was still apparent)

Edit2: I can reproduce your problem with qt5ct-0.41-3 and qt5-styleplugins-, and your patch definitely fixes it. It's just that the qt5ct guys apparently also fixed it. Here's their patch:

gamezelda commented on 2020-06-03 21:42 (UTC) (edited on 2020-06-03 21:43 (UTC) by gamezelda)

Qt 5.15 just got out of testing and after the upgrade (and even after recompiling this package), keepassxc looks ugly for me (I use a dark theme for GTK, and keepassxc looks like it's using a mix of a dark and a light theme)

I took a look at the patch for Qt 5.15 in this package and the related change in Qt ( ) and tried changing the (now non-existing) call to QApplicationPrivate::setSystemPalette to QApplication::setPalette instead of deleting it (like this: ), since that's pretty much what QApplicationPrivate::setSystemPalette did, and this has solved my immediate issue with keepassxc. Not sure if that's the 'right' fix or there's any gotcha, though.

TheRepoClub commented on 2020-05-31 18:09 (UTC)

thanks I have updated the pkgbuild

yrlf commented on 2020-05-28 10:47 (UTC)

This package fails to build once Qt 5.15 lands (currently in testing).

This patch from the OpenSUSE team fixes the build: (original source:

Also, here is a full patch including neccessary changes to the PKGBUILD: