thanks for the library. We tried to connect DestinationPtr to an existing slot or signal, in order to print the logs in a specific area of a QMainWindows but get some errors.
The custom class slot implementation is:
void MyClass::onNewLog(const QString &msg, int level)
{
//My Slot
}
QObject::connect: Use the SLOT or SIGNAL macro to connect Logging::onNewLog(QString,int)
We also tried to connect to a signal and some variations of the input arguments:
Hi,
thanks for the library. We tried to connect DestinationPtr to an existing slot or signal, in order to print the logs in a specific area of a QMainWindows but get some errors.
The custom class slot implementation is:
The connection we tried is:
We received the error:
QObject::connect: Use the SLOT or SIGNAL macro to connect Logging::onNewLog(QString,int)
We also tried to connect to a signal and some variations of the input arguments:Is there a way to connect logs to an external class by signal or slots qt functionality?
We use Qt 15.12.2. Examples work fine, but there is not an example for connecting to a member function or signal/slot.
Thanks in advance.