Hi,
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!Code:void MainWindow::paintEvent(QPaintEvent* aEvent) { QPixmap pic; bool loaded = pic.load("E:\\SImages\\1.jpg"); QPainter painter(this); if( loaded ) { painter.drawPixmap(0,0,width(),height(),pic,0,0,pic.width(),pic.height()); } else { // draw diagonal line if load fails painter.drawLine(0,0,width(),height()); } }
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?
Thanks,



