When trying to create a large image like below, you get a null QImage.
The code responsible for the failure is in QImageData::create() and looks like this:
The particular check that fails is:
I presume QImageData::nbytes being of type int is the primary reason to have this check.
It would be nice to remove this 2GB limitation for 64bit builds. Large images are commonly used in printing industry.