PDA

View Full Version : about QListWidgetItem



Pang
24th March 2007, 08:57
hi:
i create a QListWidget .in this list i add some items and each item represent an action. can i set
a QAction as such QListWidgetItem's data and then i can get this data (using QListWidgetItem class's data method) late ? How to do that? Thanks

wysota
24th March 2007, 10:14
Subclass QListWidgetItem and add a "QAction *" member to it.