Skip to content

Get slot information from PythonQt object #73

Answered by florianlink
tonka3000 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I overlooked this...

Slots have the following methods, which return tuples for all overloads:

parameterTypes", (PyCFunction)PythonQtSlotFunction_parameterTypes, METH_NOARGS,
"Returns a tuple of tuples of the C++ parameter types for all overloads of the slot"
},
{"parameterNames", (PyCFunction)PythonQtSlotFunction_parameterNames, METH_NOARGS,
"Returns a tuple of tuples of the C++ parameter type names (if available), for all overloads of the slot"
},
{"typeName", (PyCFunction)PythonQtSlotFunction_typeName, METH_NOARGS,
"Returns a tuple of the C++ return value types of each slot overload"
},

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrbean-bremen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7 on October 11, 2022 08:42.