Hello, I am trying to create a slot method that has variable arguments. The MOC'er does its thing but when the compiler runs it complains about syntax.
error 2059 : syntax error : '('
	
	    Q_OBJECT
public slots:
    void log(char *, ...);
};
        class Utility : public QObject {
    Q_OBJECT
public slots:
    void log(char *, ...);
};
To copy to clipboard, switch view to plain text mode 
  
MOC'ed code (snipped)
	
	int Utility
::qt_metacall(QMetaObject::Call _c, 
int _id, 
void **_a
) {     //...
    case 0: log((*reinterpret_cast<const char *(*)>(_a[1])), (*reinterpret_cast< (*)>(_a[2]))); break;
    //...
}
        int Utility::qt_metacall(QMetaObject::Call _c, int _id, void **_a) {
    //...
    case 0: log((*reinterpret_cast<const char *(*)>(_a[1])), (*reinterpret_cast< (*)>(_a[2]))); break;
    //...
}
To copy to clipboard, switch view to plain text mode 
  It looks like the MOC'er doesn't know how to handle '...'. Is there a better way to do this?
Thanks!
				
			
Bookmarks