Results 1 to 3 of 3

Thread: Is there similar functions as getopt in QT?

  1. #1
    Join Date
    Sep 2008
    Posts
    93
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Is there similar functions as getopt in QT?

    Hello,
    Is there similar functions as getopt in QT?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there similar functions as getopt in QT?

    You can use getopt() in Qt applications. If you want something more highlevel, there is a getopt-like class available on Froglogic website.

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Is there similar functions as getopt in QT?

    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().
    J-P Nurmi

Similar Threads

  1. Replies: 12
    Last Post: 14th August 2007, 17:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.