I used below syntax in Qt5 according to new connect syntax to avoid type mismatches of slot and signals for a a QListWidget
with checkable items.
co
You can use the more appropriate syntax according to Qt version:
#if QT_VERSION >= 0x050000
connect(item, &QListWidget::itemChanged, this , &MainWindow::checkItemChanged);
#else
connect(item, SIGNAL(checkItemChanged), this , SLOT(checkItemChanged));
#endif
(or the 'old string-based' for all versions).