Patrick N.
|
using pictures with spawnl()
|
Patrick N.
07/24/2013 6:52 AM
post103492
|
using pictures with spawnl()
Hi there :)
I have the following problem:
I am using spawnl() to start new qt-programs/processes on Beagleboard-xM with QNX 6.5 SP1 ( qnx_bglxm - example from
dennis). This is also already working but if I try to start a qt-program with pictures then i get the following error:
>>"QImage::scaled: Image is a null image"<<
If I start this program directly via QNX Momentics (qconn) or via shell then I don´t have this error. I also tried to
open these pictures with fopen() and that is working.
>> printf("%s\n", "opening with fopen()"); <<
>> datei = fopen("/Vererbung/Bilder/Zeiger.png", "r"); <<
>> if(datei == NULL) <<
>> {printf("%s\n", "opening with fopen() not working");} <<
>> else <<
>> {printf("%s\n", "opening with fopen() ok!");} <<
Now I was told in another forum that it could be a problem with the qt-routine and not a permission problem because
fopen() works.
For loading the picture into the QImage I use:
>> arrow->load(QString(QCoreApplication::applicationDirPath() + "/pictures/arrow.png")); <<
Does someone have an idea what my problem could be?
ps.: I am not using the shell, because it messes my connection to the serial interface up and because of that I kill "sh
" at the beginning with "sigkill". (Sorry Dennis, but I still couldn´t figure out how to rebuild with the build script,
but I still try! For now this way also works, but not so good I think ;) )
|
|
|