LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Im a newbie sort of (https://www.linuxquestions.org/questions/programming-9/im-a-newbie-sort-of-61184/)

deepsix 05-22-2003 10: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 feel.......am I retarded or can someone help me?

Thanks

fancypiper 05-22-2003 11:15 AM

They are different libraries.

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

acid_kewpie 05-22-2003 11:24 AM

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

droussel 05-22-2003 01: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 01: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 06:14 PM

thanks
 
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 06:19 PM

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

Proud 05-23-2003 01: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 07:57 PM.