PDA

View Full Version : Is there similar functions as getopt in QT?



learning_qt
13th January 2009, 13:43
Hello,
Is there similar functions as getopt in QT?

Thanks!

wysota
13th January 2009, 14:25
You can use getopt() in Qt applications. If you want something more highlevel, there is a getopt-like class available on Froglogic website.

jpn
13th January 2009, 15:31
Just notice that for relatively simple arguments it might be sufficient to just use the power of QStringList and QString. The arguments are available via QApplication::arguments().