Home · All Classes · All Functions · Overviews

Qt 3 Support Members for QSocketNotifier

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Functions

QSocketNotifier ( int socket, Type type, QObject * parent, const char * name )

Member Function Documentation

QSocketNotifier::QSocketNotifier ( int socket, Type type, QObject * parent, const char * name )

Use the QSocketNotifier() constructor combined with the QObject::setObjectName() function instead.

For example, if you have code like

 QSocketNotifier *notifier = new QSocketNotifier(socket, type, parent, name);

you can rewrite it as

 QSocketNotifier *notifier = new QSocketNotifier(socket, type, parent);
 notifier->setObjectName(name);


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.0