Hi,

Is it possible to use Q_ARG with reference types? For example:

Qt Code:
  1. void foo(QIODevice& obj)
  2. {
  3. QMetaObject::invokeMethod(this, "fooImpl", Q_ARG(QIODevice&, obj));
  4. }
To copy to clipboard, switch view to plain text mode 

This code does not compile because the template type for QArgument is inferred to be QIODevice&, and the QArgument constructor wants a pointer to this type (something like QIODevice&*). Is there a way around this other than simply not using reference types?