[PyQt] Function pointer with a default value?
Shaheed Haque
srhaque at theiet.org
Sun Jul 9 13:47:15 BST 2017
Hi,
I'm a bit stumped by how to specify a function pointer argument with a
default value. The obvious:
whatever *findPackages(..., const QString &packageRoot = QString(),
bool (*filter)(const KPluginMetaData &) = 0);
simply results in "Compulsory argument given after optional argument".
My Yacc is too rusty for a quick examination of parser.y to reveal the
problem, so any clues greatly appreciated.
Thanks, Shaheed
More information about the PyQt
mailing list