SOrry , cut and paste this:

Qt Code:
  1. QObject::connect(ui->list, //object
  2. &QListWidget::itemClicked, //signal
  3. this, //object
  4. [this]( QListWidgetItem * pItem ) { this->ui->list_2->addItem( pItem ) } );
To copy to clipboard, switch view to plain text mode 

trows this error


Qt Code:
  1. /media/f/QT/Qt/QT/qtconnectivity/examples/bluetooth/CAT_BT_18112020/device.cpp:180: error: expected ';' before '}' token
  2. [this]( QListWidgetItem * pItem ) { this->ui->list_2->addItem( pItem ) } );
  3. ^
To copy to clipboard, switch view to plain text mode 

I have this :

Qt Code:
  1. Qt Creator 3.5.1
  2. Based on Qt 5.5.1 (GCC 5.2.1 20151129, 64 bit)
To copy to clipboard, switch view to plain text mode 

Could that be part of my problem ??