QCheckListItem signal question

A

Artur M. Piwko

Is there a way to distinguish if QCheckListItem was checked/unchecked
or clicked?
 
D

David Boddie

You could connect the currentChanged() or clicked() signals in your
QListView to a slot in some other object (perhaps the parent of the
QListView). When the signal is emitted, you can examine the state of
the item passed to the slot.

Hope this helps,

David
 
A

Artur M. Piwko

In the darkest hour on 20 Sep 2005 08:07:47 -0700,
David Boddie said:
You could connect the currentChanged() or clicked() signals in your
QListView to a slot in some other object (perhaps the parent of the
QListView). When the signal is emitted, you can examine the state of
the item passed to the slot.

Yes, but those signals don't let me distinguish between item change
and check/uncheck. I found the way - override QCheckListItem method
activate().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,321
Members
48,004
Latest member
KelseyFors

Latest Threads

Top