Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ProjectModel::copymodel(QModelIndex idx){
- const mo::model model(modelList.at(idx.row()));
- std::ostream *stream;
- stream << &model;
- QByteArray itemData;
- QDataStream datastream(&itemData, QIODevice::WriteOnly);
- QMimeData *mimeData = new QMimeData;
- mimeData->setData("test", itemData);
- QApplication::clipboard()->setMimeData(mimeData);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement