QVectorIn this example, we create a QVector of integers and use the constData function to obtain a constant pointer to the underlying data. We then store this pointer in the variable `ptr`. Package library: Qt Core libraryvec {1, 2, 3, 4}; const int* ptr = vec.constData(); // ptr now points to the memory location of vec's data