By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,923 Members | 1,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,923 IT Pros & Developers. It's quick & easy.

QCheckListItem signal question

P: n/a
Is there a way to distinguish if QCheckListItem was checked/unchecked
or clicked?

--
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:213B ]
[ 15:36:46 user up 10740 days, 3:31, 1 user, load average: 0.06, 0.06, 0.06 ]

Grain grows best in shit.
Sep 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

Sep 20 '05 #2

P: n/a
In the darkest hour on 20 Sep 2005 08:07:47 -0700,
David Boddie <da****@mcs.st-and.ac.uk> screamed:
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().

--
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:212B ]
[ 17:58:41 user up 10740 days, 5:53, 1 user, load average: 0.06, 0.06, 0.06 ]

My computer NEVER cras
Sep 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.