Obsolete Members for QSocketNotifier

The following members of class QSocketNotifier are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) 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);

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.