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:
// This not compile QList<MyClass> a; // ... 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).
Bookmarks