-   Programming (
-   -   Im a newbie sort of (

deepsix 05-22-2003 11:48 AM

Im a newbie sort of
Does anyone know an easy way to take a GTK program and compile it with QT? I dont know if this makes sense to some of you so what im trying to do is take a program written for gnome and give it a kde look and I retarded or can someone help me?


fancypiper 05-22-2003 12:15 PM

They are different libraries.

Why not run the programs under kde? Doesn't that do it?

acid_kewpie 05-22-2003 12:24 PM

utterly impossible, sorry. ever tried to fly a car?

droussel 05-22-2003 02:34 PM

Hi deepsix,

Never programmed under gnome (gtk) or KDE(qt) but those are two different graphical libraries, or framework if you want.

What that mean is that both use different function (method) call to achieve the (more or less) same result. They both do the same job (do graphical stuff), but they are entirely different and all of the GUI part of a gtk application would probably have to be redone to "port" it to qt.

More so, gtk is a C library while Qt is a C++ object oriented library.

But anyway, you can run a gnome app under kde anyway. Sure, they wont have a unified look and feel, but it will work.

Well, this is a pretty simplified explanation, sorry if you are not THAT newbie anyway :-)

Hope this helps :-)

Proud 05-22-2003 02:56 PM

Maybe think about providing/using a theme for both Qt and GTK+ which look the same, like Mandrake's Galaxy? Can an app use a different them if it's installed? Rather anti-user control I know... how about hard code it to?

deepsix 05-22-2003 07:14 PM

I understand now what I must do........... lol
I will make a program to do it automatically
when I get there ill let ya know.........

thanks again ......I love this forum.......

deepsix 05-22-2003 07:19 PM

PS .....nice thinking Proud.....

Proud 05-23-2003 02:42 PM

Making your own widget set which can be used in/with either GTK+ or Qt sounds like what you need to do. Might be more hassle than just porting the app, or having a thing at app start which chooses to use GTK+ or Qt.

All times are GMT -5. The time now is 12:25 AM.