Qt Reference Documentation

Qt 3 Support Members for QSound

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

QSound ( const QString & filename, QObject * parent, const char * name )
  • 8 public functions inherited from QObject

Static Public Members

bool available ()

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);
 mySound->setObjectName(name);

bool QSound::available () [static]

Use the isAvailable() function instead.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();