Results 1 to 2 of 2

Thread: reading network configuration

  1. #1
    Join Date
    Jul 2010
    Location
    Poland
    Posts
    184
    Thanks
    70
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default reading network configuration

    Hello!

    I need to read network configuration like IP, netmask, DNS in Linux. How can I do it using QT?

    thank in advance
    best regards
    Tomasz

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: reading network configuration

    You could try to read appropriate config files and then parse them to acquire these informations, or use qprocess to run ifconfig and retrieve output of ifconfig.
    I doubt that QT offers specific function like retrieve network configuration, but I can be wrong on these because Qt positively surprised me with that kind of tasks in the past.

Similar Threads

  1. Error in Qt configuration with My SQL
    By sosanjay in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2010, 07:34
  2. Configuration files
    By rbp in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2009, 06:47
  3. QT Network Proxy Configuration
    By suresh in forum Qt Programming
    Replies: 7
    Last Post: 28th September 2007, 01:16
  4. Qt configuration
    By Krish_ng in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2007, 10:51
  5. Qt configuration for beginners
    By step1up in forum Installation and Deployment
    Replies: 6
    Last Post: 15th April 2007, 00:40

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.