Hello!

In QImage class we have function bits() witch is overloaded:
Qt Code:
  1. uchar * bits ()
  2. const uchar * bits () const
To copy to clipboard, switch view to plain text mode 

My problem is that when I want to call uchar * bits () function, just like that:
Qt Code:
  1. uchar *bitsImage = image.bits();
To copy to clipboard, switch view to plain text mode 
I'm getting an error:
error: invalid conversion from 'const uchar*' to 'uchar*'

So I would like to ask how I can call the uchar * bits () function?

Best regards
s410i