The Ultimate Qt Community site
Home News Forum Wiki Contest FAQ Links

Go Back   Qt Centre Forum > KDE > General KDE

General KDE General KDE issues.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th December 2007, 00:25
alecs1 alecs1 is offline
Beginner
 
Join Date: Jul 2006
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Default KDE 3 style applied to Qt 4 programs

Is there an easy way to 'force' the KDE 3 style chosen for my desktop to Qt 4 programs? It doesn't bother me to write some (not too much) code in my program to make it look like the rest of the programs.

(I have to some GTK+ stuff for school and the Gtk/Qt engine got me by surprize, my GTK+ 2 program had the KDE style buttons )

Reply With Quote
  #2  
Old 11th December 2007, 01:20
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,663
Thanks: 3
Thanked 1,640 Times in 1,591 Posts
Default Re: KDE 3 style applied to Qt 4 programs

No, it's not possible. Qt3 and Qt4 style API differs very much. But you should be able to force a KDE4 style on a Qt4 app.

Reply With Quote
  #3  
Old 22nd July 2008, 23:52
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,663
Thanks: 3
Thanked 1,640 Times in 1,591 Posts
Default Re: KDE 3 style applied to Qt 4 programs

There is no way around it - you can't style Qt4 apps with Qt3 styles without rewriting them for Qt4.

Reply With Quote
  #4  
Old 29th November 2008, 00:23
rexi rexi is offline
Beginner
 
Join Date: Nov 2008
Qt products used: Qt4
Qt platforms used: MacOS, Unix/X11, Windows
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: KDE 3 style applied to Qt 4 programs

Ok, my question is the other way round: is there a way to not force KDE3 settings on Qt4 apps? Why I'm asking is: I'm (still) using KDE3 (with the Baghira style) and some Qt4 apps. Those apps seem to take up the color theme from the KDE3 style, which in the end doesn't look very good on Qt4 because, frankly, this theme is waaaay too configurable, and I (of course) use this to an excessive amount to make it look like my preferred GUI But with any other style the color choice looks very odd.

I would expect other KDE3 styles to adopt these color settings, but I was really surprised that Qt4 also adopts them. Now, admittedly, this might be a positive thing for most people, but for my use case it results in some plain ugly GUIs... So I'm wondering, is there a way to keep Qt4 from using KDE3's style settings (be it colors or whatever...)?

Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:30.

Powered by vBulletin Version 3.7.1 Copyright ©2000 - 2008, Jelsoft Enterprises Ltd., vRewrite 1.5 SEOed URLs completed by Tech Help Forum and Chalo Na.
© 2006–2008 Qt Centre - The Ultimate Qt Community site
Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.