We just explained how to do exactly that. Choose a method that you like.
You can't copy directly because the image formats are different. QImage expects 32bit format. If you're copying from 24bit source then you need to use one of the methods that was posted.
Bookmarks