QListWidget, QListWidgetItem and checked() signal.



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



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



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



  • nope, just that it was changed.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.