A drag'n'drop operation on a screen with a dpr != 1 tries to scale the (optional) QDrag pixmap. This results in a confusing warning "QPixmap::scaleWidth: Pixmap is a null pixmap". Avoid it by checking if there is a pixmap available before trying to scale it. Fixes: QTBUG-122755 Pick-to: 6.5 Change-Id: I554675b79840e34ddd3f53153b68e913fd333122 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit db328ca975bc63f3baf3d021dcff1ea37fa6b6a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%