Username: Password: Remember me
Search Criteria Advanced
Package Details

qgtkstyle-svn 898-1
http://labs.trolltech.com/page/Projects/Styles/GtkStyle
An engine to create a GTK+ layer for Qt-based applications.

unsupported :: x11
Maintainer: Saint
Votes: 300

License: GPL3

Last Updated: Tue, 26 Jan 2010 00:05:56 +0000
First Submitted: Wed, 14 May 2008 20:57:19 +0000

Tarball :: Files :: PKGBUILD

Dependencies gconf qt>=4.4.0

Comment by: grimp3ur on Mon, 25 May 2009 17:30:49 +0000
sorry)... problem was solved by adding:

to env files: export GTK2_RC_FILES=~/.gtkrc-2.0
to ~/.gtkrc-2.0: gtk-theme-name = "<name>"
Comment by: grimp3ur on Mon, 25 May 2009 17:06:03 +0000
> Qt 4.5 already included this, so this package is kinda useless IMO -- tri170391

includes, but with old error (i'm not sure if it's accidentally =), in absence of gtk-qt-engine:
QGtkStyle cannot be used together with the GTK_Qt engine
Comment by: tri170391 on Tue, 31 Mar 2009 14:42:22 +0000
Qt 4.5 already included this, so this package is kinda useless IMO.
Comment by: Sara on Mon, 23 Mar 2009 22:37:27 +0000
It does build and patch correctly when I use the patch provided by nicktian, and not the one in the AUR.
Comment by: Sara on Sat, 14 Mar 2009 21:39:23 +0000
Killajoe, have you uncommented the line for the patch? It installs fine for me too, it's just that the GTK style doesn't work because the patch hasn't been implemented. My problem is with implementing the patch. If it's some error on my part I'll definitely try again.
Comment by: killajoe on Sat, 14 Mar 2009 21:09:12 +0000
for me building and installing works fine...
Comment by: Sara on Thu, 12 Mar 2009 18:36:53 +0000
The patch does not work, and I've tried wget-ting the direct link for the patch, so it can't be a copy/paste error on my part. I've uncommented the patch line in the PKGBUILD, added a line to wget the patch, trying both the AUR link and the direct link provided in the comment, but I'm still asked the file to patch:

File to patch: qgtkstyle/gtksymbols.cpp (I think this is the file--I input this in)
patching file qgtkstyle/gtksymbols.cpp
patch: **** malformed patch at line 6: themeName = getThemeName();

Is anyone else having this problem? The SVN checkout works fine for me, the patch is my only issue.
Comment by: simo91 on Thu, 05 Mar 2009 12:42:07 +0000
When i launch makepkg it waits here:

[..]
==> Entrata nell'ambiente di fakeroot in corso...
==> Avvio di build() in corso...
Alla revisione 889.
==> SVN checkout done or server timeout

Can you edit the PKGBUILD and try it by yourself and if it works will you paste it here?
Comment by: nicktian on Wed, 04 Mar 2009 13:30:29 +0000
also you should apply patch from root source directory with
$patch -p0 <qtengine_errorfix.patch
Comment by: nicktian on Wed, 04 Mar 2009 13:27:13 +0000
yes. patch is right. but it is copypasted wrong. you can get the patch file from http://nicktian.narod.ru/qtengine_errorfix.patch
Comment by: simo91 on Thu, 26 Feb 2009 18:04:59 +0000
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: gtksymbols.cpp
|===================================================================
|--- gtksymbols.cpp (revision 889)
|+++ gtksymbols.cpp (working copy)
--------------------------
File to patch:

What can i do? Is your patch right?
Comment by: nicktian on Tue, 24 Feb 2009 22:11:07 +0000
You can "conflicts=('gtk-qt-engine')" line
and add this patch to your tarball

Index: gtksymbols.cpp
===================================================================
--- gtksymbols.cpp (revision 889)
+++ gtksymbols.cpp (working copy)
@@ -569,7 +569,7 @@
themeName = getThemeName();
// Due to namespace conflicts with Qt3 and obvious recursion with Qt4,
// we cannot support the GTK_Qt Gtk engine
- if (!(themeName.isEmpty() || themeName == QLS("Qt") || themeName == QLS("Qt4"))) {
+ if (!(themeName == QLS("Qt") || themeName == QLS("Qt4"))) {
resolveGtk();
if (QGtk::gtk_init) {
qt_filedialog_open_filename_hook = &QGtk::openFilename;

so this patch helps everyone who have this problem ("QGtkStyle cannot be used together with the GTK_Qt engine") and really have no gtk-qt-engine installed
Comment by: shapeshifter on Mon, 26 Jan 2009 01:24:02 +0000
Of course, using both at the same time makes no sense at all as it ends up in a recursion as both widget engines try to call each other. The check for the gtk theme name is only in there to prevent this recursion from happening. Imho, it's implemented badly as it still detects a problem even when there is none.
Comment by: cyberpatrol on Mon, 26 Jan 2009 00:06:20 +0000
I'm just wondering why one needs to use both qgtkstyle and gtk-qt-engine at the same time.
If one is using a Qt based DE (KDE) then gtk-qt-engine is needed to have GTK apps look like Qt apps. Qt apps are still rendered by Qt itself.
If one is using a GTK based DE (Gnome, Xfce) then qgtkstyle is needed to have Qt4 apps look like GTK apps. GTK apps are still rendered by GTK itself.
I can't image that it is possible to run KDE and Gnome at the same time on the same Computer.
Comment by: shapeshifter on Sun, 25 Jan 2009 23:40:35 +0000
Actually, the problem returned. Really odd. Don't see why it's still happening. Now I just removed the check completely before compiling. Around line 570, commented this part

if (!(themeName.isEmpty() || themeName == QLS("Qt") || themeName == QLS("Qt4")))

and the corresponding else statement. Now it's fixed for good...
Just don't do this and then enable GTK_Qt as this will make qt try to make gtk widgets while gtk tries to make qt widgets which results in destroying both ;)
Comment by: shapeshifter on Tue, 20 Jan 2009 18:00:01 +0000
I got the same error (QGtkStyle cannot be used together with the GTK_Qt engine.) so I went through the qgtkstyle sources and this is the probem:
qgtkstyle checks for the current gtk style name, as it should NOT be "Qt" or "Qt4". It first checks for the GTK2_RC_FILES variable which would point to some gtkrc files with the names in it, but most don't have this env var, so it checks in gconf. Most people who don't have many gnome things won't ahve this key and that's the problem.

This fixed it for me and it should fix it for anyone else (run it as user, to add a key to gconf. The name doesn't matter at all, as long as it's not Qt or Qt4.)

gconftool-2 -t string -s /desktop/gnome/interface/gtk_theme "Clearlooks"
Comment by: simo91 on Mon, 24 Nov 2008 17:58:38 +0000
This one:

QGtkStyle cannot be used together with the GTK_Qt engine.

:(
Comment by: simo91 on Mon, 24 Nov 2008 17:50:34 +0000
gconf is needed.. i tried without it and something fails.. you can try if you want

pacman -Rd gconf && yaourt -S qgtkstyle-svn

now open 'qtconfig' and use a qt-based application
Comment by: GullibleJones on Mon, 24 Nov 2008 17:32:33 +0000
This should not depend on gconf, it only needs gtk2.
Comment by: kwurzel on Sat, 12 Jul 2008 07:44:29 +0000
Since this is an svn package, would you please add makedepends=('subversion')? Thank you!
Comment by: kalen3285 on Sat, 24 May 2008 20:01:55 +0000
Just a quick note for anyone wondering - qt 4.4.0-1 in now in testing.
Comment by: Noneus on Mon, 19 May 2008 04:06:49 +0000
As you can read on previous comments here You need qt 4.4.0. It's not in Arch's Repo. You need markc's kde4-svn packages or qtmod from kdemo4-unstable.
Comment by: SpookyET on Sun, 18 May 2008 23:42:01 +0000
It won't build.

==> ERROR: unable to retrieve revision number
==> Making package: qgtkstyle-svn 594-1 (Sun May 18 19:40:33 EDT 2008)
==> Checking Runtime Dependencies...
==> Installing missing dependencies...
warning: qt-4.3.3-4 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets: qt-4.3.3-4

Total Download Size: 0.00 MB
Total Installed Size: 15.95 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading qt [#####################] 100%
==> Missing Dependencies:
-> qt>=4.4.0
==> Checking Buildtime Dependencies...
==> ERROR: Could not resolve all dependencies.
Error: Makepkg was unable to build qgtkstyle-svn package.
Comment by: Noneus on Sun, 18 May 2008 22:29:07 +0000
Thanks. added gconf to dependencies.
Comment by: darzephyr on Sun, 18 May 2008 15:29:06 +0000
It also depends on "gconf". (qgtkstyle actually use some sort of hack with gconf to obtain certain gtk information. it's going to use XSettings later).
Without gconf I get a SEGFAULT
Comment by: C!HO on Fri, 16 May 2008 14:33:08 +0000
You could also use "qtmod" from KDEMod4-Repo.
Comment by: Noneus on Fri, 16 May 2008 06:04:34 +0000
Well Qt 4.4.0 is in only one Repo I know. markc's kde4.1 svn builds: http://bbs.archlinux.org/viewtopic.php?id=44507

you need qt-copy amd qt-copy-dev from his repos. unfornutatley I needed kdelibs too because he put phonon in kdelibs and qt needs phonon.

So pacman -S qt-copy-dev kdelibs then build this package and set the qt style with qtconfig.
Comment by: Diaz on Thu, 15 May 2008 16:25:11 +0000
and qt4 is in what repo? can't find it...
Comment by: Army on Wed, 14 May 2008 22:49:35 +0000
You find it in qt3 ;)
Comment by: Diaz on Wed, 14 May 2008 21:44:13 +0000
in wich package do i find the qmake utility??

v1.6.0