QCheckListItem signal question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Artur M. Piwko

    #1

    QCheckListItem signal question

    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.
  • David Boddie

    #2
    Re: QCheckListItem signal question

    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

    Comment

    • Artur M. Piwko

      #3
      Re: QCheckListItem signal question

      In the darkest hour on 20 Sep 2005 08:07:47 -0700,
      David Boddie <davidb@mcs.s t-and.ac.uk> screamed:[color=blue]
      > 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.
      >[/color]

      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

      Comment

      Working...