Signal for checkbox toggle in QListWidget or QTableWidget



  • Hello everyone!

    I am struggling with getting the signal while the checkbox toggle (either change to 'Qt::Checked' or 'Qt::Unchecked') in QListWidget or QTableWidget. I am creating the checkboxes according to this post: https://forum.qt.io/post/172238 by SetBetterPass. The problem is that the QStandardItem does not have the signal for 'check' or 'uncheck', what I managed to do was to have the signal when the item is clicked with e.g. QListWidget::itemChanged, but it is not what I am looking for...

    I was searching for the solution on my own for a long time, but because I did not find anything suitable I am writing my question here.

    Thank you for your help!


  • Lifetime Qt Champion

    Hi,

    What is your purpose for that signal ?



  • You have to write your own signal, and check if the condition is checked or unchecked according to your requirements and then emit the signal in that condition


Log in to reply
 

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