Results 1 to 1 of 1

Thread: QHostInfo::fromName problems in a pc and not in others

  1. #1

    Default QHostInfo::fromName problems in a pc and not in others

    Hi there,

    have you ever had problems with the QHostInfo::fromName method?

    I have tried my code in three pc. Two of them were ok but the last one (a laptop), when connected with a cable, gives a problem: the thread were it is started blocks itself for at least one minute. After that, I bind a QUdpSocket successfully but the readyRead signal is never emitted when a packet arrives.

    If I remove the cable and restart the app, it works (using a simulator).

    I repeat, the code works with other machines.

    Any hints?


    Thanks


    Edit:

    the readyread triggers only using 127.0.0.1 but not with the eth0 address (192.168.x.x) of the machine.
    Last edited by valerianst; 10th October 2013 at 15:41.

Similar Threads

  1. QHostInfo::lookupHost
    By matteo.ceruti in forum Qt Programming
    Replies: 0
    Last Post: 30th January 2012, 16:54
  2. QHostInfo - Unknown Error
    By alurchi in forum Qt Programming
    Replies: 7
    Last Post: 17th May 2011, 12:59
  3. Hostlookup using QHostInfo
    By doggrant in forum Qt Programming
    Replies: 7
    Last Post: 26th January 2010, 14:58
  4. Replies: 1
    Last Post: 31st July 2009, 21:03
  5. QHostInfo usefullness
    By baray98 in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2007, 15:07

Tags for this Thread

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.