Hello, How can I cast a QList to a constant QList of constant values without create a new QList (create a constant view of the list)

Example:
Qt Code:
  1. // This not compile
  2. QList<MyClass> a;
  3. // ...
  4. const QList<const MyClass> b = a;
To copy to clipboard, switch view to plain text mode 

I want to use this for return the list as constant (with constant values too).