Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Trusted Contributor
becker666
Posts: 122
Registered: ‎04-12-2010
My Device: Storm
My Carrier: Verizon

Qpixmap crashes on LoadFromData

Maybe I'm missing something trivial but cannot see it yet???

 

Debuger goes thru up to that point??? I'm using the file picker and picking a file from the camera folder and trying to resize and store to sqlite

 

  QFile file(this_image_path);
    if (!file.open(QIODevice::ReadOnly))
    	return ret_val;
    QByteArray byteArray = file.readAll();

    //now scale this image
    QPixmap pixmap = QPixmap();
    if( pixmap.loadFromData(byteArray, "PNG") )  // carry on if it works (CRASHES here with a SIGSEGV
.....

 

Please use plain text.