Home · All Classes · All Functions · Overviews

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 )

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

bool QSound::available ()   [static]

Use the isAvailable() function instead.

Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.6.3