спасибо, прояснилось.
теперь другая проблема, данные запихнул вроде, но назад получить не получается.
запихиваю:
m_list_item->setData(Qt::UserRole, QVariant(QVariant::UserType,this));
получаю
QVariant var_dev = item->data(Qt::UserRole);
QDevice *dev = var_dev.value<QDevice*>();
ошибка
/usr/include/QtCore/qmetatype.h: In static member function ‘static int QMetaTypeId2<T>::qt_metatype_id() [with T = QDevice*]’:
/usr/include/QtCore/qmetatype.h:199: instantiated from ‘int qMetaTypeId(T*) [with T = QDevice*]’
/usr/include/QtCore/qvariant.h:566: instantiated from ‘T qvariant_cast(const QVariant&) [with T = QDevice*]’
/usr/include/QtCore/qvariant.h:579: instantiated from ‘T qVariantValue(const QVariant&) [with T =
QDevice*]’
/usr/include/QtCore/qvariant.h:319: instantiated from ‘T QVariant::value() const [with T = QDevice*]’
qdraglistwidget.cpp:44: instantiated from here
/usr/include/QtCore/qmetatype.h:189: ошибка: ‘qt_metatype_id’ is not a member of ‘QMetaTypeId<QDevice*>’