QListWidget clicked not working

56 views
Skip to first unread message

md

unread,
Jul 17, 2014, 3:43:41 PM7/17/14
to python_in...@googlegroups.com
Hey Again

Thanks for all the help .. I have to say this Maya community really is awesome. 

So I am nearing the finish line, but I need to be able to capture the 'click' events on my QlistView objects.

Here is an example of code from my create _connections(self) ... lv_versions is a QListWidget

class my_dialog(QtGui.QDialog):
def create_connections(self):
self.ui.lv_versions.itemClicked.connect(self.get_dates)

def get_dates(self):
print "blalabla"

Any thoughts ?
 
Thanks !
M

Justin Israel

unread,
Jul 17, 2014, 4:02:13 PM7/17/14
to python_in...@googlegroups.com

Does the slot not get called when you click list items? Are you able to reproduce a concise working example (on pastebin or gist or something) that we can test?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/db15dac3-cac4-4fc9-9dc5-f24f25e41f9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

md

unread,
Jul 17, 2014, 4:05:26 PM7/17/14
to python_in...@googlegroups.com
exactly .. the slot is not getting called. 


On Thursday, July 17, 2014 4:02:13 PM UTC-4, Justin Israel wrote:

Does the slot not get called when you click list items? Are you able to reproduce a concise working example (on pastebin or gist or something) that we can test?

On 18/07/2014 7:43 AM, "md" <acco...@mdonovan.com> wrote:
Hey Again

Thanks for all the help .. I have to say this Maya community really is awesome. 

So I am nearing the finish line, but I need to be able to capture the 'click' events on my QlistView objects.

Here is an example of code from my create _connections(self) ... lv_versions is a QListWidget

class my_dialog(QtGui.QDialog):
def create_connections(self):
self.ui.lv_versions.itemClicked.connect(self.get_dates)

def get_dates(self):
print "blalabla"

Any thoughts ?
 
Thanks !
M

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

md

unread,
Jul 17, 2014, 4:45:39 PM7/17/14
to python_in...@googlegroups.com
ARGH ! The forms create_conenctions() funtion does not do much if you never call it =(.

Sorry for the wasted bandwidth.

Justin Israel

unread,
Jul 17, 2014, 6:00:15 PM7/17/14
to python_in...@googlegroups.com
Glad you caught that one. We wouldn't have noticed it without the full example :-)



--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/bae6ea3d-afd7-47a0-a6ce-ece05dad25e1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages