以下成员源于类 QSound 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
|
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);