QVector的用法 QVector<double> a; a.append(2); qDebug()<<a.size(); QVector<double> b(3); b.append(1); qDebug()<<b.size(); 运行结果是1 4