Obsolete Members for QSound

以下成员源于类 QSound 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

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

成员函数文档编制

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

构造 QSound object from the file specified by the given filename and with the given parent and name 。使用 QSound () construcor and QObject::setObjectName () 代替。

例如,若有代码像

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

可以把它重写成

QSounc *mySound = new QSound(filename, parent);
mySound->setObjectName(name);