Has anyone tried to invoke overloaded operator << on a QObject.
For example i have a class
class Worker : public QObject
{
Q_OBJECT
public:
explicit Worker(QObject *parent = 0);
Q_INVOKABLE virtual void operator<<(char p);
};
When i try to invoke it with like this i get an error:
QMetaObject::invokeMethod( &worker, QT_STRINGIFY2( operator<<(char) ), Qt::QueuedConnection, Q_ARG( char, 'a') );
ErrorMessage would be: No such method Worker::operator<<(char)(char)