HBITMAP to QPixmap in Qt5.0
How can I conver a HBITMAP to QPixmap in Qt5.0 ?
I find a function fromWinHBITMAP() in Qt4.8, but this func is not availible in Qt5.0.
Moved into "Win Extras":http://qt.gitorious.org/qt/qtwinextras
Build and install then:
// PRO File
QT += winextras
// CPP file
// Gives you
// QPixmap Q_WINEXTRAS_EXPORT fromHBITMAP(HBITMAP bitmap, HBitmapFormat format = HBitmapNoAlpha);
where can I find the file <qwinfunctions.h>?
I cannt find it in Qt5.0, thanks
It is part of Win Extras linked above.
is there an alternative to downloading Win Extras? I would like to be able to do this with the what's included in Qt 5.1 without extras.