It seems like this fetch is a blocking function.
Please check the return value of loadFromData().
And check the length of image data after fetch to make sure that fetcher is fetching right.![]()
It seems like this fetch is a blocking function.
Please check the return value of loadFromData().
And check the length of image data after fetch to make sure that fetcher is fetching right.![]()
sizeof(data) will always return the size of a pointer. You need to use the return value of http_fetch:
On another note, using a blocking function in your GUI thread is probably not a good idea.Qt Code:
int len = http_fetch(urlpath,&data) pixmap.loadFromData((const uchar *)data, len);To copy to clipboard, switch view to plain text mode
anafor2004 (25th August 2009)
Bookmarks