fromImage() is a static member function, you need to copy the converted pixmap into a variable (you might have ignored the compiler warning, or may be even disabled them). Anyways this will work
and even better is thisQt Code:
QPixmap pixmap; pixmap = pixmap.fromImage(image1);To copy to clipboard, switch view to plain text mode





Reply With Quote

Bookmarks