samuel ammonius wrote:
> I made a mistake in my example of QPushButton_setFlat(). the parameters
> should have been (QPushButton *, bool) instead of just (bool).
But then you probably need to rewrite QT_C_EXPORT as a variadic macro,
unless you want to pass the parameter list twice, because the PARAMS
parameter requires enclosing the parameter list in parentheses (because it
can contain commas), at which point the macro would produce something like
(QPushButton *, (bool)) for the C case, which in this particular case
probably happens to work, but not for, e.g., (QPushButton *, (bool, int)).
Kevin Kofler
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development