LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-29-2007, 02:07 PM   #1
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
gtk / qt - which path to choose


Hi,

For starters: I don't want to start and endless discussion, just need some advice

I have an idea for a program I want to write myself, as none of the available packages does exactly what I need.
In the past I have worked as a professional developer, writing in all kinds of languages, from assembler to COBOL, C, Visual Basic and some others. I worked on very technical projects (printer-drivers) and financial acounting systems - about everything you can imagine.
But I have zero programming experience on Linux, apart from some quite complex shell scripts.

Now I want to start this project that needs to have a graphical interface so that it'll be simple to use (for my wife and children).
I will need to access a database (probably mysql, to keep it simple) and read / modify binary files on my drive.

I understand that - apart from writing a web-based solution using PHP or Perl - I can choose to use GTK or QT.
I don't want to learn how to write "Hello World" programs and want to start producing results as fast as possible.
I also need a reasonably simple to learn IDE and something stable...

Based on all these facts, what do you suggest?

Thanks in advance!
 
Old 10-29-2007, 02:17 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Nowadays people often have both libraries installed, so it's not that big a deal, but anyway I personally like programs (that sometimes even seem to pop up somewhere) in which you can select during build time what ui toolkit to use (for example gtk or qt, but there are other possibilities as well - those two are just the most massive ones). It's portability if you ask me. If you can, you should probably even keep the program core separated from the UI, so later the user interface can be made better without touching the program's code code. Or you can have several alternative user interfaces to it. And if possible, have the core program (if it makes any sense without a gui) run in "text mode" so it can be run without a gui if needed..

If you take a look at Gnome's or KDE's site, they'll offer you some IDEs..and a Google search will bring you to some alternatives I guess. But I still recommend you to try them first, if possible, because (just as with distributions) different people like different things, so others can't necessarily tell you the "best IDE" to use.
 
Old 10-29-2007, 06:10 PM   #3
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
That would be ideal indeed - complete separation of code and user interface.
But I'm not sure if I will achieve this with my first Linux program.

I have been thinking of at least separating all functions in a library so that I later can build a web-interface without rewriting everything.

I'll do some Googleing on IDEs etc...
 
Old 10-29-2007, 06:40 PM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
There's a sticky thread on IDE's here

I agree it is best to try and keep the interface separate from the functionality but it doesn't always turn out like that on the first version!

Qt or GTK? this comes down to personal preference, mine is towards Qt, because I prefer to code in C++ (although there are GTK bindings for C++, Qt is coded in C++) Also Qt provides cross platform support and good i18n. I use Kdevelop (under gnome) and QDevelop (under windows).
 
Old 10-29-2007, 09:24 PM   #5
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Original Poster
Rep: Reputation: 91
In the end, it's always a personal preference ;-)
Thanks for the link to the sticky thread - I'll take a look.

I am an old-fashioned C programmer, not much into C++
I18N is important to me, as I am a Dutch guy, working in Brazil using English as my preferred form of communication.
You can imagine how I suffer with international settings in programs...

For the moment, I am writing the main functions in separate modules that afterwards can be uses from Qt, GTK or anything else...

By the way, I am convinced that software = information and information should be free, so whenever my program reaches a mature stage, it will be freely available.
I cannot release too many details yet, as the project is still developing.

Thanks for the help for now!
 
  


Reply



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
Location of GTK Libraries and Path question. thakis SUSE / openSUSE 3 04-30-2006 09:39 AM
Gtk+, C, setting an accel path for a GtkToolItem? redarrow Programming 0 12-12-2005 06:08 AM
media library and GTK path johnnydangerous Fedora 2 03-08-2005 02:30 AM
gtk-config was not found in your $PATH eerf Debian 1 01-19-2005 03:47 AM
gtk path to compile wxwindow zebiloute Linux - Newbie 3 07-16-2003 10:09 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration