QImageReader::SetClipRect limitation on size(Large Image)
The limitation on rect varies on systems, which I don’t know why.
I want to display a very large image 20000 × 30000 of image on graphicView.
anyone encounter the limitation on this?
- SetClipRect
- {
- System:
- Dell Vostro 1510
- Intel Core 2 Duo T8100 2.09 GHz
- 3 GB of RAM
- Window XP 32 bit service pack 3
- System:
- AMD QuadCore phenom 3 GHz
- 8 GB of RAM
- Window XP 64 bit
- System:
- Dell Vostro 1400
- Intel Core 2 Duo T7250 2.0 GHz
- 2 GB of RAM
- Window XP 32 bit service pack 3
- System:
- Dell Vostro 3700
- Intel Core i5 2.27 GHz
- 4 GB of Ram
- Window 7 64 bit
- }
EDIT: please use code highlighting by @-tags. thanks. Gerolf
3 replies
The limitation on rect varies on systems, which I don’t know why. I want to display a very large image 20000 × 30000 of image on graphicView. anyone encounter the limitation on this?
Are you aware that a 20k x 30k / 32bpp image requires 2*3*4E8 byte = 2,4 GByte of contiguous memory for being loaded? Yes, QImage isn’t that smart. Split the image in chunks and load them on demand or so.
You must log in to post a reply. Not a member yet? Register here!




