以下成員源於類 QSound 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
QSound (const QString & filename , QObject * parent , const char * name ) |
構造 QSound object from the file specified by the given filename 和采用給定 parent and name 。使用 QSound () construcor and QObject::setObjectName () 代替。
例如,若有代碼像
QSound *mySound = new QSound(filename, parent, name);
可以把它重寫成
QSounc *mySound = new QSound(filename, parent); mySound->setObjectName(name);