Quote Originally Posted by wysota View Post
That's not really an answer. Qt can do such things on its own but it requires the enum to be defined in a QObject which is not the case here. I suspect it would be possible to declare a dummy QObject and declare the paper size enum there but it doesn't seem like a good solution.
Ok. Then the routine you written above in this thread would work, right ? Since QPrinter is not derived from QObject, I suggested the link regarding C++. Is there any reason why QPrinter is not a part of QObject ?