diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 7cfe869436073ae1e9527b4ce442ca8d4d3182f7..8aab91508bb3bcc704487a05e566261c040ce92b 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1429,6 +1429,13 @@ void WatchHandler::showEditValue(const WatchData &data)
             bits = (uchar*)ba.data();
         }
         QImage im(bits, width, height, QImage::Format(format));
+
+#if 1
+        // enforcing copy of image data
+        QImage im2(im);
+        im.detach();
+#endif
+
         l->setPixmap(QPixmap::fromImage(im));
         l->resize(width, height);
         l->show();