This do not work:
Qt Code:
  1. QPalette palette;
  2. palette.setBrush(QPalette::Base,m_colorMap.value("NODTA"));//NODTA-> is my color index
  3. m_view->setPalette(palette);
  4. m_view->repaint(true);
To copy to clipboard, switch view to plain text mode 

Still using fitInview -> changes the background. Maybe you have and idea what is invoked in the fitInView? (I know the view is transformed /scaled)

Kacper