you can't use QPixmap in threads. use QImage insted.
you can't use QPixmap in threads. use QImage insted.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
whe do you use these code in a thread?
Qt Code:
if(!pxm->isNull()) { printf("Pixmap isn't null! %dx%d\n", this->width(), pxm->height()); this->a->w->imageLabel->setImage(this->pxm); } else { printf("Pixmap is null!\n"); }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
first of all, as I said, you can use GUI in a thread and QPixmap also.
use signals/slots or custom event for communication between threads.
read more about multithreading in Qt.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks