#include
using namespace std;vector<double> getNumListFromStr(const QString& str)
{QRegExp rx("-?[1-9]\\d*\\.\\d*|0&#43;.[0-9]&#43;|-?0\\.\\d*[1-9]\\d*|-?\\d&#43;");int pos &#61; 0;vector<double> v;while ((pos &#61; rx.indexIn(str, pos)) !&#61; -1){pos &#43;&#61; rx.matchedLength();v.push_back(rx.cap(0).toDouble());}return v;
}