Here is another "Signals" question from a VB-6 Newbie to pyQT and QT...
What does the reference to (QListWidgetItem *)
in void itemDoubleClicked (QListWidgetItem *)
refer to and how do I use it.
Thanks!
Here is another "Signals" question from a VB-6 Newbie to pyQT and QT...
What does the reference to (QListWidgetItem *)
in void itemDoubleClicked (QListWidgetItem *)
refer to and how do I use it.
Thanks!
Here is the documentation page.
//i don't know how the python works(how the signal definition looks in python port), but in C++ that is a pointer to the item that was double-clicked.
OK, I can understand the Pointer. My question is, is where do you get, or how do you construct that pointer.
In other words, what would I be pointing to?
What QList property name would be used?
You don't construct it, you get it from the signal - it's a built-in signal that passes a pointer to the item from the QListWidget that was double-clicked.
To that signal you connect a slot - like void doStuffForDoubleClickedItem(QListWidgetItem *item) {//use the item here}
Bookmarks