#includeIn this example, we create a QVector of integers and obtain a constant iterator to its first element using the constBegin method. We then dereference the iterator to print the value of the first element. Package library: Qt.using namespace std; int main() { QVector vector {10, 20, 30, 40, 50}; QVector ::const_iterator it = vector.constBegin(); cout << *it << endl; // prints 10 return 0; }