QVector<double> a;
    a.append(2);
    qDebug()<<a.size();

    QVector<double> b(3);
    b.append(1);
    qDebug()<<b.size();

运行结果是1   4

相关文章: