Obsolete Members for QSound

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

Public Functions

(obsolete) QSound(const QString & filename, QObject * parent, const char * name)

Member Function Documentation

QSound::QSound(const QString & filename, QObject * parent, const char * name)

Constructs a QSound object from the file specified by the given filename and with the given parent and name. Use the QSound() construcor and QObject::setObjectName() instead.

For example, if you have code like

QSound *mySound = new QSound(filename, parent, name);

you can rewrite it as

QSounc *mySound = new QSound(filename, 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.