This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to synchronize KDE3 style with the QT3 one ?

Tags: None
(comma "," separated)
DDZ
Registered Member
Posts
10
Karma
0
OS
Hello !


Is it possible to synchronize KDE3 style with the QT3 style config (qtconfig-qt3) ?

Here is my problem :
I want to use the QtCurve style for KDE3 apps and the GTK+ (QGtkStyle) style for KDE4 apps but I must set QtCurve KDE4 style in order to use QtCurve with KDE3 apps. If I choose GTK+ as KDE4 style, KDE3 apps looks like horrible default style and I don't know how to set QtCurve to KDE3 apps by hand (there isn't kcontrol anymore on Ubuntu like distribution and kcmshell style command returns : "kbuildsycoca running...
Reusing existing ksycoca".
Is there any ability to set QtCurve to KDE3 apps and GTK+ to KDE4 apps as I can set QtCurve to QT3 apps and GTK+ to QT4 apps ?

Thank you very much in advance for your answers and have a nice day !
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KDE 3 applications should in theory at least obey the Qt3 settings here, as they use the same configuration files to set the style. However, Qt3 and Qt4 applications may both try to use ~/.local/Trolltech.conf which could lead to conflicts.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DDZ
Registered Member
Posts
10
Karma
0
OS
This is my ~/.config/Trolltech.conf :
[Qt]
style=GTK+
KDE\kdeAddedLibraryPaths=/usr/lib/kde4/plugins
4.7\libraryPath=/usr/lib/kde4/plugins
font="Liberation Sans,10,-1,5,50,0,0,0,0,0"
GUIEffects=general, fademenu, animatecombo, fadetooltip, animatetoolbox
Palette\active=#000000, #e1ebe1, #ffffff, #cbc7c4, #bcc4bc, #b8b5b2, #000000, #ffffff, #000000, #f5faf5, #e1ebe1, #adb5ad, #5ab43c, #ffffff, #0000ff, #ff00ff, #e5eae5, #000000, #ffffdc, #000000
Palette\inactive=#000000, #e1ebe1, #ffffff, #cbc7c4, #bcc4bc, #b8b5b2, #000000, #ffffff, #000000, #f5faf5, #e1ebe1, #adb5ad, #cdebaf, #000000, #0000ff, #ff00ff, #e5eae5, #000000, #ffffdc, #000000
Palette\disabled=#707570, #e1ebe1, #ffffff, #cbc7c4, #bcc4bc, #b8b5b2, #707570, #ffffff, #707570, #f5faf5, #e1ebe1, #adb5ad, #b4b4b4, #ffffff, #0000ff, #ff00ff, #e5eae5, #000000, #ffffdc, #000000
KWinPalette\activeBackground=#5ab43c
KWinPalette\activeBlend=#52a436
KWinPalette\activeForeground=#ffffff
KWinPalette\frame=#ffffff
KWinPalette\activeTitleBtnBg=#ffffff
KWinPalette\inactiveBackground=#cdebaf
KWinPalette\inactiveBlend=#bbd69f
KWinPalette\inactiveForeground=#000000
KWinPalette\inactiveFrame=#fcfcfc
KWinPalette\inactiveTitleBtnBg=#fcfcfc
KDE\contrast=5
fontPath=@Invalid()
embedFonts=true
doubleClickInterval=400
cursorFlashTime=1000
wheelScrollLines=3
resolveSymlinks=false
globalStrut\width=0
globalStrut\height=0
useRtlExtensions=false
XIMInputStyle=On The Spot
DefaultInputMethod=xim
audiosink=Auto
videomode=Auto

[Qt%20Plugin%20Cache%204.7.false]
usr\lib\qt4\plugins\inputmethods\libqimsw-multi.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:57
usr\lib\kde4\plugins\gui_platform\libkde.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:00:35
usr\lib\kde4\plugins\imageformats\kimg_dds.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_eps.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_exr.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_jp2.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_pcx.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_pic.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_psd.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_ras.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_rgb.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_tga.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_xcf.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\kde4\plugins\imageformats\kimg_xview.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:26:11
usr\lib\qt4\plugins\imageformats\libqgif.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:56
usr\lib\qt4\plugins\imageformats\libqico.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:56
usr\lib\qt4\plugins\imageformats\libqjpeg.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:57
usr\lib\qt4\plugins\imageformats\libqmng.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:57
usr\lib\qt4\plugins\imageformats\libqsvg.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:11:01
usr\lib\qt4\plugins\imageformats\libqtiff.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:57
usr\lib\kde4\plugins\styles\oxygen.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:00:35
usr\lib\kde4\plugins\styles\qtcurve.so=40700, 0, i386 linux g++-4 full-config, 2011-03-08T11:43:08
usr\lib\kde4\classic_mode.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:01:21
usr\lib\kde4\icon_mode.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:01:21
usr\lib\kde4\kcm_style.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:01:21
usr\lib\kde4\kfilemodule.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T10:24:18
usr\lib\kde4\kcm_icons.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T09:43:09
usr\lib\kde4\plugins\phonon_platform\kde.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T09:43:11
usr\lib\qt4\plugins\phonon_backend\phonon_xine.so=40700, 1, i386 linux g++-4 full-config, 2010-06-08T00:45:21
usr\lib\kde4\kcm_colors.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:01:21
usr\lib\qt4\plugins\iconengines\libqsvgicon.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:11:01
usr\lib\qt4\plugins\sqldrivers\libqsqlite.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:11:01
usr\lib\qt4\plugins\sqldrivers\libqsqlmysql.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:11:00
usr\lib\kde4\kcm_cgc.so=40700, 0, i386 linux g++-4 full-config, 2011-03-09T10:26:48
usr\lib\qt4\plugins\codecs\libqcncodecs.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:53
usr\lib\qt4\plugins\codecs\libqjpcodecs.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:53
usr\lib\qt4\plugins\codecs\libqkrcodecs.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:53
usr\lib\qt4\plugins\codecs\libqtwcodecs.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:53
usr\lib\qt4\plugins\bearer\libqgenericbearer.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:57
usr\lib\qt4\plugins\bearer\libqnmbearer.so=40700, 0, i386 linux g++-4 full-config, 2011-03-29T10:10:57
usr\lib\kde4\kcm_gk4.so=40700, 0, i386 linux g++-4 full-config, 2011-04-07T16:03:11
usr\lib\kde4\kcm_kwindecoration.so=40700, 0, i386 linux g++-4 full-config, 2010-10-04T15:01:14
usr\lib\kde4\kcm_gtk.so=40700, 0, i386 linux g++-4 full-config, 2010-08-05T17:59:55
usr\lib\kde4\kded_ktimezoned.so=40700, 0, i386 linux g++-4 full-config, 2010-10-12T09:43:10

[Qt%20Factory%20Cache%204.7]
com.trolltech.Qt.QInputContextFactoryInterface%3A\usr\lib\qt4\plugins\inputmethods\libqimsw-multi.so=2011-03-29T10:10:57, imsw-multi
com.nokia.qt.QGuiPlatformPluginInterface%3A\usr\lib\kde4\plugins\gui_platform\libkde.so=2010-10-04T15:00:35, kde
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_dds.so=2010-10-12T10:26:11, dds
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_eps.so=2010-10-12T10:26:11, eps, EPS, epsi, EPSI, epsf, EPSF
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_exr.so=2010-10-12T10:26:11, exr, EXR
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_jp2.so=2010-10-12T10:26:11, jp2
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_pcx.so=2010-10-12T10:26:11, pcx, PCX
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_pic.so=2010-10-12T10:26:11, pic
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_psd.so=2010-10-12T10:26:11, psd, PSD
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_ras.so=2010-10-12T10:26:11, ras, RAS
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_rgb.so=2010-10-12T10:26:11, rgb, RGB, rgba, RGBA, bw, BW, sgi, SGI
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_tga.so=2010-10-12T10:26:11, tga, TGA
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_xcf.so=2010-10-12T10:26:11, xcf, XCF
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\kde4\plugins\imageformats\kimg_xview.so=2010-10-12T10:26:11, xv
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqgif.so=2011-03-29T10:10:56, gif
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqico.so=2011-03-29T10:10:56, ico
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqjpeg.so=2011-03-29T10:10:57, jpeg, jpg
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqmng.so=2011-03-29T10:10:57, mng
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqsvg.so=2011-03-29T10:11:01, svg, svgz
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqtiff.so=2011-03-29T10:10:57, tiff, tif
com.trolltech.Qt.QStyleFactoryInterface%3A\usr\lib\kde4\plugins\styles\oxygen.so=2010-10-04T15:00:35, Oxygen
com.trolltech.Qt.QStyleFactoryInterface%3A\usr\lib\kde4\plugins\styles\qtcurve.so=2011-03-08T11:43:08, QtCurve
com.trolltech.Qt.QIconEngineFactoryInterfaceV2%3A\usr\lib\qt4\plugins\iconengines\libqsvgicon.so=2011-03-29T10:11:01, svg, svgz, svg.gz
com.trolltech.Qt.QIconEngineFactoryInterface%3A\usr\lib\qt4\plugins\iconengines\libqsvgicon.so=2011-03-29T10:11:01
com.trolltech.Qt.QSqlDriverFactoryInterface%3A\usr\lib\qt4\plugins\sqldrivers\libqsqlite.so=2011-03-29T10:11:01, QSQLITE
com.trolltech.Qt.QSqlDriverFactoryInterface%3A\usr\lib\qt4\plugins\sqldrivers\libqsqlmysql.so=2011-03-29T10:11:00, QMYSQL3, QMYSQL
com.trolltech.Qt.QTextCodecFactoryInterface%3A\usr\lib\qt4\plugins\codecs\libqcncodecs.so=2011-03-29T10:10:53, GB18030, GBK, GB2312, gb2312.1980-0, gbk-0, CP936, MS936, windows-936, MIB: 114, MIB: 113, MIB: 2025, MIB: 57, MIB: -113
com.trolltech.Qt.QTextCodecFactoryInterface%3A\usr\lib\qt4\plugins\codecs\libqjpcodecs.so=2011-03-29T10:10:53, EUC-JP, ISO-2022-JP, Shift_JIS, jisx0201*-0, jisx0208*-0, JIS7, SJIS, MS_Kanji, MIB: 18, MIB: 39, MIB: 17, MIB: 15, MIB: 63
com.trolltech.Qt.QTextCodecFactoryInterface%3A\usr\lib\qt4\plugins\codecs\libqkrcodecs.so=2011-03-29T10:10:53, EUC-KR, ksc5601.1987-0, cp949, MIB: 38, MIB: 36, MIB: -949
com.trolltech.Qt.QTextCodecFactoryInterface%3A\usr\lib\qt4\plugins\codecs\libqtwcodecs.so=2011-03-29T10:10:53, Big5, Big5-HKSCS, big5-0, big5hkscs-0, Big5-ETen, CP950, MIB: 2026, MIB: 2101, MIB: -2026, MIB: -2101
com.trolltech.Qt.QBearerEngineFactoryInterface%3A\usr\lib\qt4\plugins\bearer\libqgenericbearer.so=2011-03-29T10:10:57, generic
com.trolltech.Qt.QBearerEngineFactoryInterface%3A\usr\lib\qt4\plugins\bearer\libqnmbearer.so=2011-03-29T10:10:57, networkmanager
DDZ
Registered Member
Posts
10
Karma
0
OS
What happens :


- when I choose QtCurve style in systemsettings :

Image


- when I choose GTK+ style :

Image


Here is what I would like :

Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you change the Qt3 style, is the line in ~/.config/Trolltech.conf labeled "style" under "[Qt]" changed? If so, then it appears that Qt3 and Qt4 conflict, and you will need to use a style which both have.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DDZ
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:If you change the Qt3 style, is the line in ~/.config/Trolltech.conf labeled "style" under "[Qt]" changed? If so, then it appears that Qt3 and Qt4 conflict, and you will need to use a style which both have.

If I change the QT3 style (qtconfig-qt3), the line in ~/.config/Trolltech.conf labeled "style" under "[Qt]" doesn't change.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In this case, as long as the KDEHOME environment variable isn't set, you should be fine. Make sure to set the appropriate style in qtconfig-qt3, and in System Settings and KDE 3 and KDE 4 applications should obey those respective control panels.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DDZ
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:In this case, as long as the KDEHOME environment variable isn't set, you should be fine.

How to verify this, please ?

bcooksley wrote:Make sure to set the appropriate style in qtconfig-qt3, and in System Settings and KDE 3 and KDE 4 applications should obey those respective control panels.

- qtconfig-qt3 : QtCurve style set.
- qtconfig-qt4 : GTK+ style set.
- kcmshell4 style : GTK+ style set
- kcmshell style : QtCurve style set.

But :
- If I choose QtCurve through kcmshell style -> kcmshell4 style become QtCurve.
- If I choose GTK+ through kcmshell4 style -> kcmshell style reset to B3/KDE...


I don't know why ! :-\
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
To check for the setting of $KDEHOME, run "echo $KDEHOME" in Konsole.

If it is set, it explains the behaviour. Please use the Qt style management panels to set the style, as the two KDE setting modules are overwriting each other (which means the kdelibs from KDE 3 and KDE 4 were configured to use the same settings prefix....)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DDZ
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:To check for the setting of $KDEHOME, run "echo $KDEHOME" in Konsole.

Code: Select all
echo $KDEHOME


-> blank

So, I think it isn't set.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, then it is probable that both KDE 3 and KDE 4 have been compiled to use ~/.kde/ for their settings. In order for this to work, they need to be set to use seperate directories (traditionally, ~/.kde and ~/.kde4 respectively)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DDZ
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:Ok, then it is probable that both KDE 3 and KDE 4 have been compiled to use ~/.kde/ for their settings. In order for this to work, they need to be set to use seperate directories (traditionally, ~/.kde and ~/.kde4 respectively)

Should I recompile them to set them to use separate directories or is there another way to do this ?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You should recompile them to use seperate directories. Traditionally, ~/.kde/ for KDE 3 and ~/.kde4 for KDE 4. As far as I know, no other way exists to do this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DDZ
Registered Member
Posts
10
Karma
0
OS
bcooksley wrote:You should recompile them to use seperate directories. Traditionally, ~/.kde/ for KDE 3 and ~/.kde4 for KDE 4. As far as I know, no other way exists to do this.

Thank you anyway ! :)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]