Hello,
I am trying to run some code that was built for qt 4.7
This is the code, QColormap::hPal() was removed for QT version 5
...
if (hpal) {
SelectPalette( _winDC, hpal, FALSE );
RealizePalette( _winDC );
}
if ( _ogreContext != wglGetCurrentContext() )
{
wglMakeCurrent( _winDC, _ogreContext );
}
...
...
HPALETTE hpal = QColormap::hPal();
if (hpal) {
SelectPalette( _winDC, hpal, FALSE );
RealizePalette( _winDC );
}
if ( _ogreContext != wglGetCurrentContext() )
{
wglMakeCurrent( _winDC, _ogreContext );
}
...
To copy to clipboard, switch view to plain text mode
What would be an alternative for QColormap::hPal()
Thanks
Bookmarks