1
QImage Qt dispose de deux méthodes:QImage et ses bits const() méthode const
uchar* QImage::bits();
const uchar* QImage::bits() const;
Mais comment appeler un second? Appeler
const uchar* p = image.bits();
Appelera une version non constante O_O.
Pourquoi cela fonctionnerait-il plutôt que l'inverse? –