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
Qt Code:
  1. QByteArray itemData = event->mimeData()->data("application/x-dnditemdata");
  2. QDataStream dataStream(&itemData, QIODevice::ReadOnly);
  3.  
  4. QStackedWidget widget ;
  5. QPoint offset;
  6. dataStream >> widget >> offset; //error here : no match for 'operator>>' in 'dataStream >> widget'
To copy to clipboard, switch view to plain text mode 

Thanks.