scarecr0w132
29th December 2013, 05:35
Hello,
I am trying to run some code that was built for qt 4.7
This is the code, QColormap::hPal() (http://harmattan-dev.nokia.com/docs/library/html/qt4/qcolormap.html#hPal) was removed for QT version 5
...
HPALETTE hpal = QColormap::hPal();
if (hpal) {
SelectPalette( _winDC, hpal, FALSE );
RealizePalette( _winDC );
}
if ( _ogreContext != wglGetCurrentContext() )
{
wglMakeCurrent( _winDC, _ogreContext );
}
...
What would be an alternative for QColormap::hPal() (http://harmattan-dev.nokia.com/docs/library/html/qt4/qcolormap.html#hPal)
Thanks
I am trying to run some code that was built for qt 4.7
This is the code, QColormap::hPal() (http://harmattan-dev.nokia.com/docs/library/html/qt4/qcolormap.html#hPal) was removed for QT version 5
...
HPALETTE hpal = QColormap::hPal();
if (hpal) {
SelectPalette( _winDC, hpal, FALSE );
RealizePalette( _winDC );
}
if ( _ogreContext != wglGetCurrentContext() )
{
wglMakeCurrent( _winDC, _ogreContext );
}
...
What would be an alternative for QColormap::hPal() (http://harmattan-dev.nokia.com/docs/library/html/qt4/qcolormap.html#hPal)
Thanks