SOrry , cut and paste this:
QObject::connect(ui
->list,
//object &QListWidget::itemClicked, //signal
this, //object
[this]( QListWidgetItem * pItem
) { this
->ui
->list_2
->addItem
( pItem
) } );
QObject::connect(ui->list, //object
&QListWidget::itemClicked, //signal
this, //object
[this]( QListWidgetItem * pItem ) { this->ui->list_2->addItem( pItem ) } );
To copy to clipboard, switch view to plain text mode
trows this error
/media/f/QT/Qt/QT/qtconnectivity/examples/bluetooth/CAT_BT_18112020/device.cpp:180: error: expected ';' before '}' token
[this]( QListWidgetItem * pItem
) { this
->ui
->list_2
->addItem
( pItem
) } );
^
/media/f/QT/Qt/QT/qtconnectivity/examples/bluetooth/CAT_BT_18112020/device.cpp:180: error: expected ';' before '}' token
[this]( QListWidgetItem * pItem ) { this->ui->list_2->addItem( pItem ) } );
^
To copy to clipboard, switch view to plain text mode
I have this :
Qt Creator 3.5.1
Based on Qt 5.5.1 (GCC 5.2.1 20151129, 64 bit)
Qt Creator 3.5.1
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 ??
Bookmarks