But what exactly is the problem? If you don't tell us what is wrong with the code (does it compile? does it crash? does it do something you don't want?), we won't be able to help you.
And please use the [code] tags to embed code in your posts.
But what exactly is the problem? If you don't tell us what is wrong with the code (does it compile? does it crash? does it do something you don't want?), we won't be able to help you.
And please use the [code] tags to embed code in your posts.
Hi,
I can make and run the program in QT-4. But I didn't get any output from this code in QT-4. But the old program working in QT-3. When I comment the line
frame->GetRGB()
in QT-3 it also doesn't display the image in screen. So i think that, that line is error.![]()
It seems that ImgRGB is a QImage pointer and QImage::copy() returns the object, not a pointer to it. First of all I suggest you change pointers to QImage to QImage objects as in Qt4 there is no point in having bare QImage pointers. Then make sure you assign proper types (pointers to pointers and objects to objects). Then we can continue.
Hi,
please check this code it is in QT-3
it is working in QT-3. How can I create this in QT-4. I do it like this,Qt Code:
QVector<QImage> m_RGB; for (u = 0; u < m_Buffers; u++) { }To copy to clipboard, switch view to plain text mode
Qt Code:
QVector<QImage *> m_RGB; for (u = 0; u < m_Buffers; u++) {To copy to clipboard, switch view to plain text mode
it doesn't deisplay any error at the time of make, but it doesn't display any image at run time. I think this is the most important part or that program, because when i comment this line in qt-3, then that program crashed at the time of run.
Please help me. please find the error in my code.
}
Last edited by wysota; 11th October 2007 at 12:39. Reason: missing [code] tags
Could you please start using the proper tags to embed you code?
Why do you keep using pointers in Qt4 code? Is there a reason for that? I told you there is no point in using pointers to QImage in Qt4, because it's an implicitely shared class! The code you have given won't even compile.
Bookmarks