Georg Baum wrote:
Abdelrazak Younes wrote:

Edwin Leuven wrote:
i think this one is only available if qt is compiled with stl
compatibility....

Correct. It is inside an #ifndef QT_NO_STL block here.

The documentation doesn't state so.

Then it is incomplete, or you overread something.

I guess it is incomplete then (Qt4.1.3):

std::vector<T> QVector::toStdVector () const
Returns a std::vector object with the data contained in this QVector. Example:
    QVector<double> vector;
    vector << 1.2 << 0.5 << 3.14;

    std::vector<double> stdvector = vector.toStdVector();
See also fromStdVector() and QList::toStdList().

Abdel.

Reply via email to