「Qtの基礎 - マルチスレッド」の版間の差分

ナビゲーションに移動 検索に移動
610行目: 610行目:
       QSoundEffect effect;
       QSoundEffect effect;
       QEventLoop loop;
       QEventLoop loop;
       QString strFilePath = QCoreApplication::applicationDirPath() + QDir::separator() + tr("Startup.wav");
       QString strFilePath = QCoreApplication::applicationDirPath() + QDir::separator() + tr("Sample.wav");
       effect.setSource(QUrl::fromLocalFile(strFilePath));
       effect.setSource(QUrl::fromLocalFile(strFilePath));
       effect.setVolume(50);
       effect.setVolume(50);

案内メニュー