[Interest] loading PPM {poof}

Thiago Macieira thiago.macieira at intel.com
Thu Jun 21 07:12:19 CEST 2012


On quarta-feira, 20 de junho de 2012 21.32.17, Waitman Gobble wrote:
>             path = model->filePath(index);
>             qDebug() << path;
> 
>         QPixmap pm(path);
>         statusBar()->showMessage(
>         tr("puf (%1) ")
>             .arg(pm.width()+","+pm.height()));
> 
>         gs->clear();
>         gs->addPixmap(pm);
>         gs->setSceneRect(pm.rect());
>         gv->setScene(gs);
>         gv->update();
> 
> message:
> "/home/waitman/pv2012/2012-06-15/marina/DCIM/100CANON/ppm/IMG_6651.ppm"
> ""
> The program has unexpectedly finished.

The fact that we see the first debug indicates that the second line of your 
code ran fine. But there's another "" debug and I don't see a matching 
qDebug().

Which line, exactly, did your program crash in? Please get the values of all 
pointers used in that line and tell us how sure (100%, less than 100%) that 
they were properly initialised.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120621/53e041a4/attachment.sig>


More information about the Interest mailing list