Qt 6.11 is out! See what's new in the release
blog
QImage and Warning C4267 'argument' : conversion from 'size_t' to 'int', possible loss of data?
General and Desktop
2
Posts
2
Posters
2.3k
Views
1
Watching
-
I've done research on this warning and it seems common and pretty harmless. I was wondering if anyone had insight why the following line generates this warning? Also, how do I change it to make the warning to go away? I am assuming that col, row and step are causing this warning.
@
QImage img(buffer, rgb.col, rgb.row, rgb.step, QImage::Format_RGB888);
@