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
Qt Code:
  1. ...
  2. HPALETTE hpal = QColormap::hPal();
  3. if (hpal) {
  4. SelectPalette( _winDC, hpal, FALSE );
  5. RealizePalette( _winDC );
  6. }
  7. if ( _ogreContext != wglGetCurrentContext() )
  8. {
  9. wglMakeCurrent( _winDC, _ogreContext );
  10. }
  11. ...
To copy to clipboard, switch view to plain text mode 

What would be an alternative for QColormap::hPal()

Thanks