int sockd = yourQSocket->socket();QSocketNotifier *snot = new QSocketNotifier( sockd, QSocketNotifier::Write, this );connect( snot, SIGNAL( activated() ), SLOT( yourHandler() ) );