Hi,
Is ther a way to get the widget in stackedwindow through the datastream used in drag and drop. I tried this but got an error instead
QByteArray itemData
= event
->mimeData
()->data
("application/x-dnditemdata");
dataStream >> widget >> offset; //error here : no match for 'operator>>' in 'dataStream >> widget'
QByteArray itemData = event->mimeData()->data("application/x-dnditemdata");
QDataStream dataStream(&itemData, QIODevice::ReadOnly);
QStackedWidget widget ;
QPoint offset;
dataStream >> widget >> offset; //error here : no match for 'operator>>' in 'dataStream >> widget'
To copy to clipboard, switch view to plain text mode
Thanks.
Bookmarks