Solved!! The problem was the paintEvent on the Qwidget CVWidget always running when I open an image. I suppose that it contrast the paintEvent of the QFileDialog with an incorrenct visualitazion.