Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QListWidget, QListWidgetItem and checked() signal.
Forum Updated to NodeBB v4.3 + New Features

QListWidget, QListWidgetItem and checked() signal.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 7.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anticross
    wrote on last edited by
    #1

    I have QListWidget which contains QListWidgetItem, all items in this list is user chackeble. How can I receive chacked signal from QListWidget or QListWidgetItem. QListWidget have inly : @void currentItemChanged ( QListWidgetItem * current, QListWidgetItem * previous )
    void currentRowChanged ( int currentRow )
    void currentTextChanged ( const QString & currentText )
    void itemActivated ( QListWidgetItem * item )
    void itemChanged ( QListWidgetItem * item )
    void itemClicked ( QListWidgetItem * item )
    void itemDoubleClicked ( QListWidgetItem * item )
    void itemEntered ( QListWidgetItem * item )
    void itemPressed ( QListWidgetItem * item )
    void itemSelectionChanged ()@
    signals. QListWidgetItem has no any signals.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi,

      I would use the signal "itemChanged":http://qt-project.org/doc/qt-4.8/qlistwidget.html#itemChanged

      bq. This signal is emitted whenever the data of item has changed.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anticross
        wrote on last edited by
        #3

        It's good, but is there any method to get the reason of chandging in slot that connected to this signal ?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          nope, just that it was changed.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            Or you just use "libqxt":http://libqxt.bitbucket.org/doc/0.6/qxtlistwidget.html which just has a signal for it.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved