How it connects a signal to another signal?

Report any problems with CopperSpice
Post Reply
mortaromarcello
Posts: 7
Joined: Thu Jul 02 2015 7:09 am

How it connects a signal to another signal?

Post by mortaromarcello »

Compiling the file src/multimedia/audio/qaudioinput.cpp give this error:
/home/marcello/cs/copperspice/src/multimedia/audio/qaudioinput.cpp: In constructor 'QAudioInput::QAudioInput(const QAudioFormat&, QObject*)':
/home/marcello/cs/copperspice/src/multimedia/audio/qaudioinput.cpp:123:49: error: no matching function for call to 'QAudioInput::connect(QAbstractAudioInput*&, const char [9], const char [71], const char [9], const char [71])'
connect(d, SIGNAL(notify()), SIGNAL(notify()));
^
/home/marcello/cs/copperspice/src/multimedia/audio/qaudioinput.cpp:123:49: note: candidates are:
In file included from include/QtMultimedia/qaudiodeviceinfo.h:30:0,
from /home/marcello/cs/copperspice/src/multimedia/audio/qaudioinput.cpp:27:
include/QtCore/qobject.h:100:9: note: bool QObject::connect(const QObject*, const char*, const char*, const char*, Qt::ConnectionType)
bool connect(const QObject *sender, const char *signalMethod, const char *location,
I believe that Qt4 uses the function online

Code: Select all

inline bool QObject::connect(const QObject *asender, const char *asignal,
                             const char *amember, Qt::ConnectionType atype) const
{ return connect(asender, asignal, this, amember, atype); }
But there is no corresponding function in copperspice.
It can be connect a signal to another signal with copperspice?

ansel
Posts: 116
Joined: Fri Apr 10 2015 8:23 am

Re: How it connects a signal to another signal?

Post by ansel »

Thank you for your question. Sorry it took a while to see this post. We had some forum issues. We have changed our message tracking so this does not happen in the future.

The connect syntax which uses method pointers as parameters is preferred in CopperSpice since it is faster and more efficient. The issue you posted was a problem in an earlier version of CopperSpice and has been resolved.
Ansel Sermersheim
CopperSpice Cofounder

Post Reply