[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Listview problems
From:       Bart Verwilst <verwilst () gentoo ! org>
Date:       2002-07-14 19:25:33
[Download RAW message or body]

Hi!

I love pyQT, i really do! It's so fun to program in.
But i have a little prob :o)

I've made a listview with QT Designer, but i have no idea on how to make a 
menu pop up when the user rightclicks on an item...
And how to get the values of the selected item. :o(
Could you guys please help me out?

QObject::connect: No such signal QListView::rightButtonClicked()
QObject::connect:  (sender name:   'lstSearch')
QObject::connect:  (receiver name: 'unnamed')

is what i get now, by using

win.connect(win.lstSearch, SIGNAL("rightButtonClicked()"), test.Test)

while

win.connect(win.lstSearch, SIGNAL("selectionChanged()"), test.Test)

does work..

And to show the text of the clicked item, do i need to call SelectedItem 
somewhere?

Thanks!

PS Please CC your replies to me, since i'm not subscribed yet to this list 
(didn't get request yet)

-- 
Bart Verwilst
Gentoo Linux Developer, Release Coordinator
Gent, Belgium

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic