Click to See Complete Forum and Search --> : qt and non-gui programming
crokett
03-26-2002, 11:59 AM
Can Qt be used to write command line programs? I need a good command-line scriptable FTP client for linux. Because of some potential licensing issues I want to write one. Not knowing much about network programming, Qt seems to have the classes already in it that I would need. Most of the books and example programs I have looked at concentrate on GUI programming. Is Qt appropriate to use for this?
thanks
Energon
03-26-2002, 01:20 PM
It'd be better to just learn socket programming. That way you have an understanding of what's going on and you don't have to worry about making qt work command-line.
EDIT - you could also do it in Java if you know Java. It provides the easy classes like QT, but it's meant for command line if you don't put any GUI code in it.
[ 26 March 2002: Message edited by: Energon ]
crokett
03-26-2002, 04:56 PM
hmmm.... thanks. I will look at Java first. It would be nice to not have to recompile for Linux and Windows. There are several complete Java programs out there, but I will try writing my own. Educational and it will get past any licensing issues.
spiffgq
03-27-2002, 03:28 AM
Yes, trolltech's secondary purpose behind QT was as a networking language. You can use QT classes in non-GUI programs.