You are not logged in.

#1 2010-09-08 05:58:00

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Qt settings, the Arch Way

I stopped using GNOME and KDE for the time being, but, of course, I'm still using GTK+ and Qt applications.

In keeping with the Arch Way of keeping things simple, I want to learn how to configure GTK+ and Qt by editing text configuration files in my home directory. I've gotten pretty good at finding documentation and changing settings for GTK+, but I'm having a hard time with Qt. Not only that, but the settings I change in the "systemsettings" application don't seem to apply unless I am actually running KDE. sad

So, is there a way to configure the appearance and themes of Qt applications without using "systemsettings"? Is it possible to do by modifying text configuration files? Do you know where I can learn more about it?

Thank you!

Last edited by drcouzelis (2010-09-08 06:28:08)

Offline

#2 2010-09-08 06:33:21

agapito
Member
From: Who cares.
Registered: 2008-11-13
Posts: 664

Re: Qt settings, the Arch Way

qtconfig


Excuse my poor English.

Offline

#3 2010-09-08 06:40:52

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Qt settings, the Arch Way

agapito wrote:

qtconfig

Thank you, that is a good start. I can now change my Qt theme outside of KDE. Do you know what file qtconfig saves the information in?

Also, is the icon theme a Qt setting or a KDE setting? Can I change that without using systemsettings?

Offline

#4 2010-09-08 07:03:13

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: Qt settings, the Arch Way

qtconfig stores everything in '~/.config/Trolltech.conf'.

I don't think pure Qt has its own icon themes as such, but I believe it will respect the current gtk icon theme setting if it detects a gnome environment.  It's problematic in a non-de environment though, and it will usually resort to using its built-in icons. The gtk icon theme is set in the '~/.gtkrc-2.0' configuration file.

Last edited by Wittfella (2010-09-08 11:03:55)

Offline

#5 2010-09-08 07:17:14

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Qt settings, the Arch Way

Wittfella wrote:

qtconfig stores everything in '~/.config/Trolltech.conf'.

I don't think pure Qt has its own icon themes as such, but I believe it will respect the current gtk icon theme setting if it detects a gnome environment.  It's problematic in a non-de environment though, and it will usually resort to using its inbuit icons. The gtk icon theme is set in the ~/.gtkrc-2.0' configuration file.

Aha! There it is! I was expecting it to be something like ".qtrc". tongue

As for icons, I have "hicolor" set in my .gtkrc-2.0 file, but my KDE applications are using oxygen. hmm

Offline

#6 2010-09-08 19:14:01

renegen
Member
Registered: 2010-09-08
Posts: 13

Re: Qt settings, the Arch Way

Try adding this to your ~/.xinitrc somewhere before the last line:

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

It just might work...

Offline

Board footer

Powered by FluxBB