PDA

View Full Version : GUI application



nipunreddevil
July 17th, 2009, 12:51 PM
I need to develop a GUI application capable of following:
.receive and send data serially
.display a moving map similar to google earth or better integrate google earth in the application

Last time i had used java in windows along with rx-tx library
this time i wish to move completely to linux using c\cpp
is it a good choice to leave java?
i am confused between gtk and qt?
which one shall i go with?
anyone to help?

Leslie Viljoen
July 17th, 2009, 02:17 PM
Do you have a reason to leave Java? Why do you want to develop the app again?
If you want your app to look native, Java has bindings to both Gtk and Qt. Gtk is the GUI toolkit native to Gnome (Ubuntu's default window manager), Qt is KDE's native toolkit (KDE is Kubuntu's default window manager).

nipunreddevil
July 17th, 2009, 02:33 PM
i was not able to get my java code work in linux.
though it ran well on windows but only in win xp.
i want to make os independent program.
it is for ground control station of a uav.
confused between qt/java/gtk.
like to programme in c and cpp.
Guidance needed

raronson
July 17th, 2009, 02:34 PM
You may also want to take a look at the Wikipedia entries for GTK and Qt, which have lists of the most popular applications for both. GTK apps include Open Office, Firefox, and now Google Chrome...

It's just my opinion, but unless there's a specific reason to use Qt, I'd pick GTK. Gnome/GTK is currently leading the pack in terms of popularity (Gnome is sponsored by Redhat, and used by default in SuSE and Ubuntu), and now that Google's using it for it's own operating system, it's only a matter of time before Qt becomes known as "that other GUI kit."

nipunreddevil
July 17th, 2009, 02:37 PM
how easy is to do the following in gtk:
serial port interfacing,gui develepment with and without glade,display images.file read write
or is qt better suited

Leslie Viljoen
July 23rd, 2009, 11:46 AM
i was not able to get my java code work in linux.
though it ran well on windows but only in win xp.
i want to make os independent program.
it is for ground control station of a uav.
confused between qt/java/gtk.
like to programme in c and cpp.
Guidance needed

Surely trying to get your Java app working under Linux is going to be easier than completely rewriting it in another language? What was the problem with getting it to run?

nipunreddevil
July 23rd, 2009, 11:48 AM
was not able to install rx tx libraries i used for serial interfacing

Leslie Viljoen
July 23rd, 2009, 01:27 PM
Did you see these?
http://www.agaveblue.org/howtos/Comm_How-To.shtml
http://www.captain.at/howto-java-serial-port-javax-comm-rxtx.php

nipunreddevil
July 23rd, 2009, 01:40 PM
Yes,
But still not able to do things
Dont know whether the shortcoming was due to my inability or what?
Also i think limited books are meant for applications in JAVA.

Leslie Viljoen
July 24th, 2009, 08:21 AM
Yes,
But still not able to do things
Dont know whether the shortcoming was due to my inability or what?
Also i think limited books are meant for applications in JAVA.

Well you are free to use any language! I just spend a lot of time with C and C++, and Java is a very great improvement. I haven't tried serial comms in Java yet but will probably need to sooner or later.

nipunreddevil
July 24th, 2009, 10:21 AM
i am shifting to python
Seems simpler,for serial communications on it check out pySerial.
Hope you find it useful

jacksaff
July 24th, 2009, 10:25 AM
Have you looked at marble? It sounds like it does a fairly similar job to what you want. You should be able to plug a marble widget into any qt application fairly painlessly.