I was wondering if there was a limit to the size of an image that can be loaded using QPixmap.
The following code does not seem load images that are more than ~200KB in size.
The above code seems to work just fine when compiled for windows!
void MainWindow::paintEvent(QPaintEvent* aEvent)
bool loaded = pic.load("E:\\SImages\\1.jpg");
if( loaded )
// draw diagonal line if load fails
It can handle images of any size.
But on my phone (Nokia 5800),it can successfully load images only upto 200KB.
If the image is more than 200KB, the load fails and a diagonal line is drawn.
So, how exactly do I load large images?