I'm trying to write a shell extension with Qt 5.0.0, following this tutorial:
http://www.qtcentre.org/threads/3210...source-edition
and since I'd like to create file thumbnails with this extension, I need to write this IThumbnailProvider::GetThumbnail method, whose definition is :HRESULT GetThumbnail( [in] UINT cx, [out] HBITMAP *phbmp, [out] WTS_ALPHATYPE *pdwAlpha );
So I have to convert my image into a HBITMAP.
I googled and find a method QPixmap::toWinHBITMAP().
My code is:
but when I tried to use it, I found that this wasn't defined. QPixmap::fromWinHBITMAP() is not defined as well, although I did find it in the Qt Help on my computer.Qt Code:To copy to clipboard, switch view to plain text mode
Please help![]()
Bookmarks