LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-22-2003, 10:48 AM   #1
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 337

Rep: Reputation: 31
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
 
Old 05-22-2003, 11:15 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
They are different libraries.

Why not run the programs under kde? Doesn't that do it?
 
Old 05-22-2003, 11:24 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,385

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
utterly impossible, sorry. ever tried to fly a car?
 
Old 05-22-2003, 01:34 PM   #4
droussel
LQ Newbie
 
Registered: May 2003
Distribution: SuSe, Gentoo
Posts: 2

Rep: Reputation: 0
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 :-)
 
Old 05-22-2003, 01:56 PM   #5
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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?
 
Old 05-22-2003, 06:14 PM   #6
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 337

Original Poster
Rep: Reputation: 31
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.......
 
Old 05-22-2003, 06:19 PM   #7
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 337

Original Poster
Rep: Reputation: 31
PS .....nice thinking Proud.....
 
Old 05-23-2003, 01:42 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello (sort of...) Gethyn LinuxQuestions.org Member Intro 1 10-15-2004 12:10 PM
sort of newbie getting my hands dirty(compiling GNOME) 0pal_t0ad Linux - Software 7 03-01-2004 02:56 AM
sort of newbie questions musicman_ace Linux - Hardware 1 10-03-2003 10:48 PM
Confused Newbie - No mouse (sort of!) keebz Linux - Newbie 7 12-03-2002 10:46 PM
Maybe better off in the newbie section...but it's kinda general...sort of...maybe.. Valael Linux - General 2 10-20-2002 11:24 PM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration