Krishnacins
19th May 2006, 14:23
Hi,
I'm using below function for playing .wav file......
This program is working with Qt3 (fedora c2)but its not working with Qt4 (fedora c2)
StartAlarm()
{
Q3Process *AlarmProcess;
AlarmProcess = new Q3Process (this);
AlarmProcess->setArguments("playwave"); // the player
if(rcCheckSound->isChecked() == 1)
AlarmProcess->addArgument(leFile->text() );
else
AlarmProcess->addArgument("1.wav");
AlarmProcess->start();
}
Its giving this ERROR with Qt4::
error: no matching function for call to `Q3Process::
setArguments(const char[10])'
/usr/local/Trolltech/Qt-4.1.2/include/Qt3Support/q3process.h:50: error: candidates
are: virtual void Q3Process::setArguments(const QStringList&)
Plz help me i didnt do much work with qt.....
Thanks
Krishna
I'm using below function for playing .wav file......
This program is working with Qt3 (fedora c2)but its not working with Qt4 (fedora c2)
StartAlarm()
{
Q3Process *AlarmProcess;
AlarmProcess = new Q3Process (this);
AlarmProcess->setArguments("playwave"); // the player
if(rcCheckSound->isChecked() == 1)
AlarmProcess->addArgument(leFile->text() );
else
AlarmProcess->addArgument("1.wav");
AlarmProcess->start();
}
Its giving this ERROR with Qt4::
error: no matching function for call to `Q3Process::
setArguments(const char[10])'
/usr/local/Trolltech/Qt-4.1.2/include/Qt3Support/q3process.h:50: error: candidates
are: virtual void Q3Process::setArguments(const QStringList&)
Plz help me i didnt do much work with qt.....
Thanks
Krishna