Results 1 to 3 of 3

Thread: Plug in event

  1. #1
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Plug in event

    Hi All
    Is there any signal which i can use to know if Network cable is unplugged?

  2. #2
    Join Date
    Mar 2009
    Location
    Tennessee, US
    Posts
    41
    Thanks
    3
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Plug in event

    Not to my knowledge, there isn't. You would have to setup a simple test class instead that periodically ping some internet site and test for a successful hit.

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Plug in event

    Since your app doesn't know where the traffic is going to go the result would be meaningless anyway. You could have the network cable disconnected but internet access via a bluetooth connection to a 3G phone or dongle.

    So the easiest way to detect is to just try: If you can't connect to the server, report an error. User will notice if the cable isn't plugged in when they investigate.

Similar Threads

  1. Hot plug and button event
    By kpmsivachand in forum Qt Programming
    Replies: 6
    Last Post: 16th July 2013, 06:49
  2. Plug and paint
    By omega36 in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2009, 16:34
  3. Qt plug-in for GLib event loop based application
    By profoX in forum Qt Programming
    Replies: 1
    Last Post: 14th June 2008, 14:27
  4. plug in
    By ajit in forum Qt Programming
    Replies: 1
    Last Post: 18th September 2007, 13:20
  5. Plotting plug-in available?
    By brcain in forum Qt Programming
    Replies: 2
    Last Post: 12th September 2006, 22:58

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
  •  
Qt is a trademark of The Qt Company.