Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

What is difference between SIGNAL(currentTextChanged(const QString&)) and Signal(itemSelectionChanged) for Q



  • What is difference between SIGNAL(currentTextChanged(const QString&)) and Signal(itemSelectionChanged) for QListWidget , when to use which one


  • Lifetime Qt Champion

    void QListWidget::currentTextChanged(const QString & currentText)
    This signal is emitted whenever the current item changes.

    void QListWidget::itemSelectionChanged()
    This signal is emitted whenever the selection changes

    Edit Signal or Selected Signal:

    So often you will use both.


Log in to reply